[FFmpeg-trac] #5707(avformat:new): seeking with apng does not work

FFmpeg trac at avcodec.org
Tue Jul 12 23:05:14 EEST 2016


#5707: seeking with apng does not work
----------------------------------+---------------------------------------
             Reporter:  shekh     |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  unspecified
             Keywords:  apng      |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 How to reproduce:

 I take this file:
 https://upload.wikimedia.org/wikipedia/commons/1/14/Animated_PNG_example_bouncing_beach_ball.png

 After initializing decoder run this pseudocode:

 {{{
 while(1){
   av_read_frame(ctx, &pkt);
   av_packet_unref(&pkt);
   av_seek_frame(ctx,0,0,AVSEEK_FLAG_BACKWARD);
 }
 }}}

 av_seek_frame returns 0 (success)

 I expect pkt.pts in this case to always be 0 but in fact it is:

 0,
 157500,
 165500,
 172500,
 ...

 If I proceed to decoding picture, it is one after another (seek has no
 effect).

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5707>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list