diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-26 16:16:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-26 16:16:04 +0000 |
commit | f78ebb51ecef00d1d10098e1540684d73029a662 (patch) | |
tree | 81a4d2e01dcda1c793c3154d6385203cd4e4ab91 /libavcodec/apiexample.c | |
parent | 404d2241ec55bc6048eeb7c09bc7cdb248ecf632 (diff) | |
download | ffmpeg-f78ebb51ecef00d1d10098e1540684d73029a662.tar.gz |
apiexample doesnt send complete frames to the codec
Originally committed as revision 1284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r-- | libavcodec/apiexample.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index af339571b1..674560f0f9 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -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 */ |