[FFmpeg-trac] #6627(avformat:new): av_read_frame got incorrect packet after av_seek_frame
FFmpeg
trac at avcodec.org
Wed Aug 30 13:05:29 EEST 2017
#6627: av_read_frame got incorrect packet after av_seek_frame
-------------------------------------+-------------------------------------
Reporter: sorayuki | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-
Keywords: mp4, | master
demuxer | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I'm writing a C program to use avformat to demux the attached mp4 file and
feed audio track to decoder. I found avformat read packet in incorrect
size after seek to begining, and decoder refused to decode that packet.
How to reproduce:
windows 10 x64, visual studio 2013, linked with nightly build
20170827-ef0c6d9-win32 (32bit) from https://ffmpeg.zeranoe.com/builds/
I use av_read_frame to read packet from video file, and feed the packet of
audio track through avcodec_send_packet to decoder, then receive frame by
avcodec_receive_frame. After decoding finished, I use av_seek_frame to
rewind and read the file again.
The program's output should explain the issue.
attachments are the program and sample video file.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6627>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list