Browse Source

apiexample doesnt send complete frames to the codec

Originally committed as revision 1284 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
f78ebb51ec
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/apiexample.c

+ 3
- 0
libavcodec/apiexample.c View File

@@ -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 */


Loading…
Cancel
Save