[FFmpeg-devel] [PATCH] doc/examples/muxing: add AV_ prefix to codec IDS

Stefano Sabatini stefasab at gmail.com
Tue Aug 21 17:30:59 CEST 2012


Fix warnings:
muxing.c: In function ‘add_stream’:
muxing.c:103:25: warning: comparison between ‘enum AVCodecID’ and ‘enum CodecID’ [-Wenum-compare]
muxing.c:107:25: warning: comparison between ‘enum AVCodecID’ and ‘enum CodecID’ [-Wenum-compare]
---
 doc/examples/muxing.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 338dab1..f681982 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -100,11 +100,11 @@ static AVStream *add_stream(AVFormatContext *oc, AVCodec **codec,
         c->time_base.num = 1;
         c->gop_size      = 12; /* emit one intra frame every twelve frames at most */
         c->pix_fmt       = STREAM_PIX_FMT;
-        if (c->codec_id == CODEC_ID_MPEG2VIDEO) {
+        if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
             /* just for testing, we also add B frames */
             c->max_b_frames = 2;
         }
-        if (c->codec_id == CODEC_ID_MPEG1VIDEO) {
+        if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
             /* Needed to avoid using macroblocks in which some coeffs overflow.
              * This does not happen with normal video, it just happens here as
              * the motion of the chroma plane does not match the luma plane. */
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list