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 <michaelni@gmx.at>2012-09-29 16:42:11 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-29 16:45:55 +0400
commit8672fc7b0453098d862bb1c0caafab4823ee0b4e (patch)
tree61e47d15de63bd72f6e6a73ecfb8697bb4b687b1 /libavcodec/indeo5.c
parent74bd0cf49c9c0bee8d4f3d3a98a7343c2ff5b94c (diff)
parentb146d74730ab9ec5abede9066f770ad851e45fbc (diff)
Merge commit 'b146d74730ab9ec5abede9066f770ad851e45fbc'
* commit 'b146d74730ab9ec5abede9066f770ad851e45fbc': indeo4: update AVCodecContext width/height on size change dfa: check that the caller set width/height properly. indeo5dec: Make sure we have had a valid gop header. cavsdec: check for changing w/h. lavc: set channel count from channel layout in avcodec_open2(). doc/platform: Rework the Visual Studio linking section doc/faq: Change the Visual Studio entry to reflect current status doc/platform: Replace Visual Studio section with build instructions doc/platform: Nuke section on linking static MinGW-built libs with MSVC doc/platform: Remove false claim about MinGW installer doc/platform: Mention MinGW-w64 dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction() mpegaudiodec: fix short_start calculation Conflicts: doc/faq.texi doc/platform.texi libavcodec/cavsdec.c libavcodec/indeo5.c libavcodec/ivi_common.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo5.c')
-rw-r--r--libavcodec/indeo5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index 0ba6e486f9..0a93d1e4c0 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -321,8 +321,10 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx->gop_invalid = 1;
- if (decode_gop_header(ctx, avctx))
- return -1;
+ if (decode_gop_header(ctx, avctx)) {
+ av_log(avctx, AV_LOG_ERROR, "Invalid GOP header, skipping frames.\n");
+ return AVERROR_INVALIDDATA;
+ }
ctx->gop_invalid = 0;
}