comparison libmpdemux/demux_rtp_codec.cpp @ 27341:e7c989f7a7c9

Start unifying names of internal preprocessor directives. Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable.
author diego
date Wed, 30 Jul 2008 12:01:30 +0000
parents ee14643f03d2
children b7548ba58efe
comparison
equal deleted inserted replaced
27340:33274ce3cce0 27341:e7c989f7a7c9
7 #include <math.h> 7 #include <math.h>
8 #include "stheader.h" 8 #include "stheader.h"
9 #include "libavutil/base64.h" 9 #include "libavutil/base64.h"
10 } 10 }
11 11
12 #ifdef USE_LIBAVCODEC 12 #ifdef CONFIG_LIBAVCODEC
13 AVCodecParserContext * h264parserctx; 13 AVCodecParserContext * h264parserctx;
14 #endif 14 #endif
15 15
16 // Copied from vlc 16 // Copied from vlc
17 static unsigned char* parseH264ConfigStr( char const* configStr, 17 static unsigned char* parseH264ConfigStr( char const* configStr,
114 unsigned int configLen = 0; 114 unsigned int configLen = 0;
115 unsigned char* configData 115 unsigned char* configData
116 = parseH264ConfigStr(subsession->fmtp_spropparametersets(), configLen); 116 = parseH264ConfigStr(subsession->fmtp_spropparametersets(), configLen);
117 sh_video->bih = bih = insertVideoExtradata(bih, configData, configLen); 117 sh_video->bih = bih = insertVideoExtradata(bih, configData, configLen);
118 delete[] configData; 118 delete[] configData;
119 #ifdef USE_LIBAVCODEC 119 #ifdef CONFIG_LIBAVCODEC
120 avcodec_register_all(); 120 avcodec_register_all();
121 h264parserctx = av_parser_init(CODEC_ID_H264); 121 h264parserctx = av_parser_init(CODEC_ID_H264);
122 #endif 122 #endif
123 needVideoFrameRate(demuxer, subsession); 123 needVideoFrameRate(demuxer, subsession);
124 } else if (strcmp(subsession->codecName(), "H261") == 0) { 124 } else if (strcmp(subsession->codecName(), "H261") == 0) {