# HG changeset patch # User michaelni # Date 1038327364 0 # Node ID 1a5926aeed5fe30428a3204925dd2d8ec779570c # Parent a408778eff8719cdf1aaf54e6a884a8ae4652a7c apiexample doesnt send complete frames to the codec diff -r a408778eff87 -r 1a5926aeed5f apiexample.c --- 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 */