pictordec: pass correct context to avpriv_request_sample

Fixes invalid reads.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
pull/35/head
Anton Khirnov 12 years ago
parent 5f7aecde02
commit fe9bb61f9a
  1. 2
      libavcodec/pictordec.c

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

Loading…
Cancel
Save