summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-13 20:51:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-13 20:51:41 +0200
commitf3ba91a3f1d9e99aebfe22278b0633f996e3fbe1 (patch)
treeab7b457448613d18d281ad53708ada38d2ff2f30 /libavutil
parenta25585bb50720ca14c34c297a82435774b40441e (diff)
downloadffmpeg-streaming-f3ba91a3f1d9e99aebfe22278b0633f996e3fbe1.zip
ffmpeg-streaming-f3ba91a3f1d9e99aebfe22278b0633f996e3fbe1.tar.gz
avutil/pixdesc: dont try to use av_read_image_line() with bayer formats
It has undefined behavior ATM as its not supported. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pixdesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index b89b99e..930f5a8 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -1986,9 +1986,9 @@ void ff_check_pixfmt_descriptors(void){
} else {
av_assert0(8*(c->step_minus1+1) >= c->depth_minus1+1);
}
- av_read_image_line(tmp, (void*)data, linesize, d, 0, 0, j, 2, 0);
if (!strncmp(d->name, "bayer_", 6))
continue;
+ av_read_image_line(tmp, (void*)data, linesize, d, 0, 0, j, 2, 0);
av_assert0(tmp[0] == 0 && tmp[1] == 0);
tmp[0] = tmp[1] = (1<<(c->depth_minus1 + 1)) - 1;
av_write_image_line(tmp, data, linesize, d, 0, 0, j, 2);
OpenPOWER on IntegriCloud