Revision 0d0778b0 ffmpeg.c

View differences:

ffmpeg.c
2855 2855
    opt_codec(&subtitle_stream_copy, &subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, arg);
2856 2856
}
2857 2857

  
2858
static void opt_codec_tag(const char *opt, const char *arg)
2858
static int opt_codec_tag(const char *opt, const char *arg)
2859 2859
{
2860 2860
    char *tail;
2861 2861
    uint32_t *codec_tag;
......
2863 2863
    codec_tag = !strcmp(opt, "atag") ? &audio_codec_tag :
2864 2864
                !strcmp(opt, "vtag") ? &video_codec_tag :
2865 2865
                !strcmp(opt, "stag") ? &subtitle_codec_tag : NULL;
2866
    if (!codec_tag)
2867
        return -1;
2866 2868

  
2867 2869
    *codec_tag = strtol(arg, &tail, 0);
2868 2870
    if (!tail || *tail)
2869 2871
        *codec_tag = arg[0] + (arg[1]<<8) + (arg[2]<<16) + (arg[3]<<24);
2872

  
2873
    return 0;
2870 2874
}
2871 2875

  
2872 2876
static void opt_map(const char *arg)

Also available in: Unified diff