It appears gcc forgets to increment the byte stream pointer at -O3
I was not able to spot a reason/excuse for it to do that. It
also disappears if the function isnt inlined.
This should fix the gif fate failures on open & free bsd
See: [FFmpeg-devel] [PATCH] gifdec: workaround old gcc 4.2 mis-compiling code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -406,7 +406,7 @@ static int gif_parse_next_image(GifState *s, AVFrame *frame) |
406 | 406 |
int code = bytestream2_get_byte(&s->gb); |
407 | 407 |
int ret; |
408 | 408 |
|
409 |
- av_dlog(s->avctx, "code=%02x '%c'\n", code, code); |
|
409 |
+ av_log(s->avctx, AV_LOG_DEBUG, "code=%02x '%c'\n", code, code); |
|
410 | 410 |
|
411 | 411 |
switch (code) { |
412 | 412 |
case GIF_IMAGE_SEPARATOR: |