avdec: small cleanup

This commit is contained in:
Wim Taymans 2012-07-03 17:04:49 +02:00
parent 41ad632275
commit c9878e9f86

View file

@ -585,7 +585,7 @@ gst_ffmpegviddec_get_buffer (AVCodecContext * context, AVFrame * picture)
/* Fill avpicture */
info = &ffmpegdec->output_state->info;
if (!gst_video_frame_map (&dframe->vframe, info, dframe->frame->output_buffer,
GST_MAP_READ | GST_MAP_WRITE))
GST_MAP_READWRITE))
goto invalid_frame;
dframe->mapped = TRUE;