[FFmpeg-trac] #5543(avcodec:new): av_packet_ref incorrectly processes packets with offset between data and buffer

FFmpeg trac at avcodec.org
Thu May 12 12:09:10 CEST 2016


#5543: av_packet_ref incorrectly processes packets with offset between data and
buffer
------------------------------------+-----------------------------------
             Reporter:  mrlika      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by mrlika):

 Replying to [comment:1 cehoyos]:
 > How can I reproduce the issue?

 I don't know how to reproduce the issue using ffmpeg currently because in
 trunc it still uses already deprecated av_bitstream_* API.

 Once ffmpeg switches to new av_bsf_* API you will get errors with
 aac_adtstoasc filter -> FLV muxer flow.

 To reproduce by coding you can create valid packet with pkt->data that has
 offset to pkt->buf->data and pass it to av_packet_ref. dst packet will not
 have the offset as you can see ffrom source code of av_packet_ref above.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5543#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list