Mercurial > libavcodec.hg
changeset 895:1a5926aeed5f libavcodec
apiexample doesnt send complete frames to the codec
author | michaelni |
---|---|
date | Tue, 26 Nov 2002 16:16:04 +0000 |
parents | a408778eff87 |
children | d774ded81bf6 |
files | apiexample.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/apiexample.c Tue Nov 26 09:21:01 2002 +0000 +++ b/apiexample.c Tue Nov 26 16:16:04 2002 +0000 @@ -291,6 +291,9 @@ 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 */