Commit 0be67199 authored by michaelni's avatar michaelni

apiexample doesnt send complete frames to the codec


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1284 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bd7e636f
......@@ -291,6 +291,9 @@ void video_decode_example(const char *outfilename, const char *filename)
c= avcodec_alloc_context();
if(codec->capabilities&CODEC_CAP_TRUNCATED)
c->flags|= CODEC_FLAG_TRUNCATED; /* we dont send complete frames */
/* for some codecs, such as msmpeg4 and mpeg4, width and height
MUST be initialized there because these info are not available
in the bitstream */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment