comparison apiexample.c @ 895:1a5926aeed5f libavcodec

apiexample doesnt send complete frames to the codec
author michaelni
date Tue, 26 Nov 2002 16:16:04 +0000
parents 44a1dab0205c
children c87eee6da7b1
comparison
equal deleted inserted replaced
894:a408778eff87 895:1a5926aeed5f
288 fprintf(stderr, "codec not found\n"); 288 fprintf(stderr, "codec not found\n");
289 exit(1); 289 exit(1);
290 } 290 }
291 291
292 c= avcodec_alloc_context(); 292 c= avcodec_alloc_context();
293
294 if(codec->capabilities&CODEC_CAP_TRUNCATED)
295 c->flags|= CODEC_FLAG_TRUNCATED; /* we dont send complete frames */
293 296
294 /* for some codecs, such as msmpeg4 and mpeg4, width and height 297 /* for some codecs, such as msmpeg4 and mpeg4, width and height
295 MUST be initialized there because these info are not available 298 MUST be initialized there because these info are not available
296 in the bitstream */ 299 in the bitstream */
297 300