]> git.pld-linux.org Git - packages/ffmpeg.git/blob - ffmpeg-bug-803.patch
- keep imagewidth.patch around, as a reminder
[packages/ffmpeg.git] / ffmpeg-bug-803.patch
1 --- ffmpeg-20080908/libavcodec/libmp3lame.c.orig        2008-08-09 21:37:36.000000000 +0400
2 +++ ffmpeg-20080908/libavcodec/libmp3lame.c     2009-02-03 11:22:37.000000000 +0300
3 @@ -34,6 +34,7 @@
4      int stereo;
5      uint8_t buffer[BUFFER_SIZE];
6      int buffer_index;
7 +    int flushed;
8  } Mp3AudioContext;
9  
10  static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
11 @@ -166,12 +167,18 @@
12                  BUFFER_SIZE - s->buffer_index
13                  );
14          }
15 +        s->flushed = 0;
16      }else{
17 +        if (s->flushed)
18 +            lame_result = 0;
19 +        else {
20 +            s->flushed = 1;
21          lame_result= lame_encode_flush(
22                  s->gfp,
23                  s->buffer + s->buffer_index,
24                  BUFFER_SIZE - s->buffer_index
25                  );
26 +        }
27      }
28  
29      if(lame_result==-1) {
This page took 0.345918 seconds and 3 git commands to generate.