pictordec: pass correct context to avpriv_request_sample

Fixes invalid reads.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
This commit is contained in:
Anton Khirnov 2013-08-24 21:30:46 +02:00
parent 5f7aecde02
commit fe9bb61f9a

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: