avcodec/pngdec: Fix alpha detection with skip_frame

Fixes Ticket4816

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/200/head
Michael Niedermayer 9 years ago
parent 7abc8e7ae3
commit d433623fba
  1. 1
      libavcodec/pngdec.c

@ -1136,6 +1136,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
case MKTAG('p', 'H', 'Y', 's'): case MKTAG('p', 'H', 'Y', 's'):
case MKTAG('t', 'E', 'X', 't'): case MKTAG('t', 'E', 'X', 't'):
case MKTAG('I', 'D', 'A', 'T'): case MKTAG('I', 'D', 'A', 'T'):
case MKTAG('t', 'R', 'N', 'S'):
break; break;
default: default:
goto skip_tag; goto skip_tag;

Loading…
Cancel
Save