diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 6d618f3302..b3885e510d 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -102,16 +102,16 @@ void av_write_image_line(const uint16_t *src, uint8_t *data[4], const int linesi p += step; } } else { - while (w--) { - if (flags & PIX_FMT_BE) { - uint16_t val = AV_RB16(p) | (*src++<