Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-28 00:36:37 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-28 00:37:19 +0300
commitf01e3c5d000d264b2935e186594a37a3c00f9465 (patch)
treee5d126e20c4eae7084ec809aa320a173683ee250 /libavcodec/hapdec.c
parente3ec2cde2c394af6c9b64bccd39bc206a88a4e58 (diff)
parent43dd004747fa697396b47d034a80e069facbea09 (diff)
Merge commit '43dd004747fa697396b47d034a80e069facbea09'
* commit '43dd004747fa697396b47d034a80e069facbea09': hap: Move some per-stream setup into decoder init rather than per-frame Conflicts: libavcodec/hapdec.c See: 6074956fa1d2617ac602e49931b06df0a751370e Merged-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hapdec.c')
-rw-r--r--libavcodec/hapdec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/hapdec.c b/libavcodec/hapdec.c
index 5c2c20b5e1..e2713fcc69 100644
--- a/libavcodec/hapdec.c
+++ b/libavcodec/hapdec.c
@@ -162,10 +162,11 @@ static int hap_parse_frame_header(AVCodecContext *avctx)
if (ret != 0)
return ret;
- if ((avctx->codec_tag == MKTAG('H','a','p','1') && (section_type & 0x0F) != HAP_FMT_RGBDXT1)
- || (avctx->codec_tag == MKTAG('H','a','p','5') && (section_type & 0x0F) != HAP_FMT_RGBADXT5)
- || (avctx->codec_tag == MKTAG('H','a','p','Y') && (section_type & 0x0F) != HAP_FMT_YCOCGDXT5)) {
- av_log(avctx, AV_LOG_ERROR, "Invalid texture format %#04x.\n", section_type & 0x0F);
+ if ((avctx->codec_tag == MKTAG('H','a','p','1') && (section_type & 0x0F) != HAP_FMT_RGBDXT1) ||
+ (avctx->codec_tag == MKTAG('H','a','p','5') && (section_type & 0x0F) != HAP_FMT_RGBADXT5) ||
+ (avctx->codec_tag == MKTAG('H','a','p','Y') && (section_type & 0x0F) != HAP_FMT_YCOCGDXT5)) {
+ av_log(avctx, AV_LOG_ERROR,
+ "Invalid texture format %#04x.\n", section_type & 0x0F);
return AVERROR_INVALIDDATA;
}