[FFmpeg-devel] [PATCH] H.264 : lowres isn't supported currently so treat a non-zero value as an error.

Jai Menon jmenon86
Sun Jul 4 14:09:26 CEST 2010


---
 libavcodec/h264.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 1054286..5d9ef89 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -903,6 +903,11 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){
     H264Context *h= avctx->priv_data;
     MpegEncContext * const s = &h->s;
 
+    if (avctx->lowres) {
+        av_log(avctx, AV_LOG_ERROR, "lowres decoding isn't supported by the H.264 decoder\n");
+        return -1;
+    }
+
     MPV_decode_defaults(s);
 
     s->avctx = avctx;
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list