diff mpeg12.c @ 924:3814e9115672 libavcodec

cleanup / messup? fixes 20% speedloss bug removes redundant variables from MpegEncContext release buffers in avcodec_flush_buffers() (untested)
author michaelni
date Mon, 09 Dec 2002 00:29:17 +0000
parents f9e54ade14a1
children 7fccaa0d699d
line wrap: on
line diff
--- a/mpeg12.c	Mon Dec 09 00:06:15 2002 +0000
+++ b/mpeg12.c	Mon Dec 09 00:29:17 2002 +0000
@@ -1702,7 +1702,7 @@
 
         MPV_frame_end(s);
 
-        if (s->pict_type == B_TYPE) {
+        if (s->pict_type == B_TYPE || s->low_delay) {
             *pict= *(AVVideoFrame*)&s->current_picture;
         } else {
             s->picture_number++;
@@ -1756,7 +1756,7 @@
         }
         s->width = width;
         s->height = height;
-        avctx->has_b_frames= s->has_b_frames = 1;
+        avctx->has_b_frames= 1;
         s->avctx = avctx;
         avctx->width = width;
         avctx->height = height;