summaryrefslogtreecommitdiffstats
path: root/libavdevice/dshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r--libavdevice/dshow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 3a2d6e1..ac207b8 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -920,6 +920,7 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
*pkt = pktl->pkt;
ctx->pktl = ctx->pktl->next;
av_free(pktl);
+ ctx->curbufsize -= pkt->size;
}
ResetEvent(ctx->event);
ReleaseMutex(ctx->mutex);
@@ -932,8 +933,6 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
- ctx->curbufsize -= pkt->size;
-
return pkt->size;
}
OpenPOWER on IntegriCloud