Commit fe9bb61f authored by Anton Khirnov's avatar Anton Khirnov

pictordec: pass correct context to avpriv_request_sample

Fixes invalid reads.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
parent 5f7aecde
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment