Browse Source

lavc/subviewerdec: fix potential NULL deref.

Fixes CID966647
tags/n1.1
Clément Bœsch 12 years ago
parent
commit
2e7744a6a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/subviewerdec.c

+ 1
- 1
libavcodec/subviewerdec.c View File

@@ -56,7 +56,7 @@ static int subviewer_decode_frame(AVCodecContext *avctx,
AVBPrint buf;

/* To be removed later */
if (sscanf(ptr, "%*u:%*u:%*u.%*u,%*u:%*u:%*u.%*u%c", &c) == 1) {
if (ptr && sscanf(ptr, "%*u:%*u:%*u.%*u,%*u:%*u:%*u.%*u%c", &c) == 1) {
av_log(avctx, AV_LOG_ERROR, "AVPacket is not clean (contains timing "
"information). You need to upgrade your libavformat or "
"sanitize your packet.\n");


Loading…
Cancel
Save