git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avcodec/webp: Always set pix_fmt
[ffmpeg.git]
/
libavcodec
/
vp8.c
diff --git
a/libavcodec/vp8.c
b/libavcodec/vp8.c
index
fe7aa23
..
5bf601a
100644
(file)
--- a/
libavcodec/vp8.c
+++ b/
libavcodec/vp8.c
@@
-2550,6
+2550,8
@@
int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
enum AVDiscard skip_thresh;
VP8Frame *av_uninit(curframe), *prev_frame;
+ av_assert0(avctx->pix_fmt == AV_PIX_FMT_YUVA420P || avctx->pix_fmt == AV_PIX_FMT_YUV420P);
+
if (is_vp7)
ret = vp7_decode_frame_header(s, avpkt->data, avpkt->size);
else