aboutsummaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint2014-10-30 01:50:22 +0100
committerMarton Balint2015-01-01 14:38:11 +0100
commit8c1f5fb0ae1934b1852a190bc7b252064a6330d0 (patch)
tree042d84b9b8757592014fd1f146f37c6c22ddede4 /ffplay.c
parentd25d9296003465d60a968147f7b722823f22272d (diff)
ffplay: remove flushed state from decoder context
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ffplay.c b/ffplay.c
index 1914a6692f..507617e139 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -185,7 +185,6 @@ typedef struct Decoder {
AVCodecContext *avctx;
int pkt_serial;
int finished;
- int flushed;
int packet_pending;
SDL_cond *empty_queue_cond;
int64_t start_pts;
@@ -548,8 +547,6 @@ static void decoder_init(Decoder *d, AVCodecContext *avctx, PacketQueue *queue,
static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
int got_frame = 0;
- d->flushed = 0;
-
do {
int ret = -1;
@@ -566,7 +563,6 @@ static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
if (pkt.data == flush_pkt.data) {
avcodec_flush_buffers(d->avctx);
d->finished = 0;
- d->flushed = 1;
d->next_pts = d->start_pts;
d->next_pts_tb = d->start_pts_tb;
}