Browse Source

pictordec: pass correct context to avpriv_request_sample

Fixes invalid reads.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
tags/n2.1
Anton Khirnov 12 years ago
parent
commit
fe9bb61f9a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pictordec.c

+ 1
- 1
libavcodec/pictordec.c View File

@@ -233,7 +233,7 @@ static int decode_frame(AVCodecContext *avctx,
}
}
} else {
avpriv_request_sample(s, "Uncompressed image");
avpriv_request_sample(avctx, "Uncompressed image");
return avpkt->size;
}
finish:


Loading…
Cancel
Save