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