[FFmpeg-trac] #2199(FFplay:open): ffplay: stop time counter at the end of file

FFmpeg trac at avcodec.org
Tue Nov 12 00:37:19 CET 2013


#2199: ffplay: stop time counter at the end of file
------------------------------------+----------------------------------
             Reporter:  ami_stuff   |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  FFplay
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by MattE):

 Sorry for the spam, but I figured out how to solve the issue for both
 linked files as well as keep audio from looping during network delays.
 Change:
 {{{
 if ((packet_queue_get(&is->audioq, pkt, 1, &is->audio_pkt_temp_serial)) <
 0)
 }}}
 to
 {{{
 if ((packet_queue_get(&is->audioq, pkt, 0, &is->audio_pkt_temp_serial)) <
 0)
 }}}
 to make it non-blocking. And then change
 {{{
 } else if (!block) {
     ret = 0;
     break;
 }}}
 to
 {{{
 } else if (!block) {
     ret = -1;
     break;
 }}}
 This is not a problem since this will be the only place in the code
 calling packet_queue_get with block=0 so only this will be affected by the
 change.

 I'm on Windows so I cannot patch and test easily, so please someone apply
 this change.

 Thanks,
 Matt

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2199#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list