[FFmpeg-cvslog] r14048 - in trunk/libavcodec: h264.c h264.h
astrange
subversion
Wed Jul 2 23:46:18 CEST 2008
Author: astrange
Date: Wed Jul 2 23:46:18 2008
New Revision: 14048
Log:
Don't test for H264 encoding unless an encoder exists.
Modified:
trunk/libavcodec/h264.c
trunk/libavcodec/h264.h
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Wed Jul 2 23:46:18 2008
@@ -2726,9 +2726,9 @@ static void hl_decode_mb(H264Context *h)
MpegEncContext * const s = &h->s;
const int mb_xy= h->mb_xy;
const int mb_type= s->current_picture.mb_type[mb_xy];
- int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || s->encoding;
+ int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (ENABLE_H264_ENCODER && s->encoding);
- if(!s->decode)
+ if(ENABLE_H264_ENCODER && !s->decode)
return;
if (is_complex)
Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h (original)
+++ trunk/libavcodec/h264.h Wed Jul 2 23:46:18 2008
@@ -70,6 +70,10 @@
#endif
#define FIELD_OR_MBAFF_PICTURE (FRAME_MBAFF || FIELD_PICTURE)
+#ifndef ENABLE_H264_ENCODER
+#define ENABLE_H264_ENCODER 0
+#endif
+
/**
* Sequence parameter set
*/
More information about the ffmpeg-cvslog
mailing list