Commit 6884e6dc authored by Rafaël Carré's avatar Rafaël Carré Committed by Rémi Denis-Courmont

record: remove a few relocations

They were spotted by ruby-elf's cowstats (gem install ruby-elf)
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent c422a523
...@@ -256,8 +256,8 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id, ...@@ -256,8 +256,8 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
*****************************************************************************/ *****************************************************************************/
typedef struct typedef struct
{ {
const char *psz_muxer; const char psz_muxer[4];
const char *psz_extension; const char psz_extension[4];
int i_es_max; int i_es_max;
vlc_fourcc_t codec[128]; vlc_fourcc_t codec[128];
} muxer_properties_t; } muxer_properties_t;
...@@ -305,8 +305,6 @@ static const muxer_properties_t p_muxers[] = { ...@@ -305,8 +305,6 @@ static const muxer_properties_t p_muxers[] = {
M( "mkv", "mkv", 32, VLC_CODEC_H264, VLC_CODEC_VP8, VLC_CODEC_MP4V, M( "mkv", "mkv", 32, VLC_CODEC_H264, VLC_CODEC_VP8, VLC_CODEC_MP4V,
VLC_CODEC_A52, VLC_CODEC_MP4A, VLC_CODEC_VORBIS, VLC_CODEC_FLAC ), VLC_CODEC_A52, VLC_CODEC_MP4A, VLC_CODEC_VORBIS, VLC_CODEC_FLAC ),
M( NULL, NULL, 0, 0 )
}; };
#undef M #undef M
...@@ -386,7 +384,7 @@ static void OutputStart( sout_stream_t *p_stream ) ...@@ -386,7 +384,7 @@ static void OutputStart( sout_stream_t *p_stream )
* TODO we could insert transcode in a few cases like * TODO we could insert transcode in a few cases like
* s16l <-> s16b * s16l <-> s16b
*/ */
for( int i = 0; p_muxers[i].psz_muxer != NULL; i++ ) for( unsigned i = 0; i < sizeof(p_muxers) / sizeof(*p_muxers); i++ )
{ {
bool b_ok; bool b_ok;
if( p_sys->i_id > p_muxers[i].i_es_max ) if( p_sys->i_id > p_muxers[i].i_es_max )
...@@ -421,7 +419,7 @@ static void OutputStart( sout_stream_t *p_stream ) ...@@ -421,7 +419,7 @@ static void OutputStart( sout_stream_t *p_stream )
* keeps most of our stream */ * keeps most of our stream */
if( !psz_muxer || !psz_extension ) if( !psz_muxer || !psz_extension )
{ {
static const char *ppsz_muxers[][2] = { static const char ppsz_muxers[][2][4] = {
{ "avi", "avi" }, { "mp4", "mp4" }, { "ogg", "ogg" }, { "avi", "avi" }, { "mp4", "mp4" }, { "ogg", "ogg" },
{ "asf", "asf" }, { "ts", "ts" }, { "ps", "mpg" }, { "asf", "asf" }, { "ts", "ts" }, { "ps", "mpg" },
{ "mkv", "mkv" }, { "mkv", "mkv" },
...@@ -434,13 +432,12 @@ static void OutputStart( sout_stream_t *p_stream ) ...@@ -434,13 +432,12 @@ static void OutputStart( sout_stream_t *p_stream )
{ "avformat{mux=nsv}", "nsv" }, { "avformat{mux=nsv}", "nsv" },
{ "avformat{mux=flv}", "flv" }, { "avformat{mux=flv}", "flv" },
#endif #endif
{ NULL, NULL }
}; };
int i_best = 0; int i_best = 0;
int i_best_es = 0; int i_best_es = 0;
msg_Warn( p_stream, "failed to find an adequate muxer, probing muxers" ); msg_Warn( p_stream, "failed to find an adequate muxer, probing muxers" );
for( int i = 0; ppsz_muxers[i][0] != NULL; i++ ) for( unsigned i = 0; i < sizeof(ppsz_muxers) / sizeof(*ppsz_muxers); i++ )
{ {
char *psz_file; char *psz_file;
int i_es; int i_es;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment