#11054: distortion on speex playback
-------------------------------------+-------------------------------------
             Reporter:  rach         |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by shenlebantongying):

 After this change
 
(https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/49726a922fd2b358feb7753488d415180da5121c..4a0e1cfc6f33d152e007849f6de7028d651de2af:/libavcodec/speexdec.c)

 The test files above can be fixed by hardcoding `frame_size` to 640 (which
 I know isn't a proper fix):

 {{{
 diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c
 index b335e2fbe8..2531f62cf3 100644
 --- a/libavcodec/speexdec.c
 +++ b/libavcodec/speexdec.c
 @@ -1426,6 +1426,7 @@ static int parse_speex_extradata(AVCodecContext
 *avctx,
          s->frame_size >     INT32_MAX >> (s->mode > 1))
          return AVERROR_INVALIDDATA;
      s->frame_size <<= (s->mode > 1);
 +    s->frame_size = 640;
      s->vbr = bytestream_get_le32(&buf);
      s->frames_per_packet = bytestream_get_le32(&buf);
      if (s->frames_per_packet <= 0 ||
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11054#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to