[FFmpeg-cvslog] r19079 - trunk/libavcodec/utils.c

reimar subversion
Wed Jun 3 13:23:16 CEST 2009


Author: reimar
Date: Wed Jun  3 13:23:16 2009
New Revision: 19079

Log:
Set AV_PKT_FLAG_KEY in avcodec_decode_video.
This fixes decoding of MPNG, which currently is incorrectly decoded as
CorePNG delta frames.
CorePNG can not be correctly decoded via this old API either way.

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Wed Jun  3 13:20:35 2009	(r19078)
+++ trunk/libavcodec/utils.c	Wed Jun  3 13:23:16 2009	(r19079)
@@ -557,6 +557,8 @@ int attribute_align_arg avcodec_decode_v
     av_init_packet(&avpkt);
     avpkt.data = buf;
     avpkt.size = buf_size;
+    // HACK for CorePNG to decode as normal PNG by default
+    avpkt.flags = AV_PKT_FLAG_KEY;
 
     return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
 }



More information about the ffmpeg-cvslog mailing list