diff options
-rw-r--r-- | libavdevice/dshow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 93bca1d..3a2d6e1 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -916,8 +916,8 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt) while (!pktl) { WaitForSingleObject(ctx->mutex, INFINITE); pktl = ctx->pktl; - if (ctx->pktl) { - *pkt = ctx->pktl->pkt; + if (pktl) { + *pkt = pktl->pkt; ctx->pktl = ctx->pktl->next; av_free(pktl); } |