Browse Source

ffplay: drop remaining frames in current audio avpacket when seeking

Fixes ticket #1928.

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n1.2
Marton Balint 12 years ago
parent
commit
48e43a1999
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ffplay.c

+ 3
- 0
ffplay.c View File

@@ -2090,6 +2090,9 @@ static int audio_decode_frame(VideoState *is)
} else } else
avcodec_get_frame_defaults(is->frame); avcodec_get_frame_defaults(is->frame);


if (is->audioq.serial != is->audio_pkt_temp_serial)
break;

if (is->paused) if (is->paused)
return -1; return -1;




Loading…
Cancel
Save