Revision e1cc8339 ffmpeg.c

View differences:

ffmpeg.c
221 221

  
222 222
static AVBitStreamFilterContext *video_bitstream_filters=NULL;
223 223
static AVBitStreamFilterContext *audio_bitstream_filters=NULL;
224
static AVBitStreamFilterContext *subtitle_bitstream_filters=NULL;
224 225
static AVBitStreamFilterContext *bitstream_filters[MAX_FILES][MAX_STREAMS];
225 226

  
226 227
#define DEFAULT_PASS_LOGFILENAME "ffmpeg2pass"
......
3076 3077
    }
3077 3078
    avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
3078 3079

  
3080
    bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
3081
    subtitle_bitstream_filters= NULL;
3082

  
3079 3083
    subtitle_enc = st->codec;
3080 3084
    subtitle_enc->codec_type = CODEC_TYPE_SUBTITLE;
3081 3085
    if (subtitle_stream_copy) {
......
3693 3697
        exit(1);
3694 3698
    }
3695 3699

  
3696
    bsfp= *opt == 'v' ? &video_bitstream_filters : &audio_bitstream_filters;
3700
    bsfp= *opt == 'v' ? &video_bitstream_filters :
3701
          *opt == 'a' ? &audio_bitstream_filters :
3702
                        &subtitle_bitstream_filters;
3697 3703
    while(*bsfp)
3698 3704
        bsfp= &(*bsfp)->next;
3699 3705

  
......
3834 3840

  
3835 3841
    { "absf", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_EXPERT, {(void*)opt_bsf}, "", "bitstream filter" },
3836 3842
    { "vbsf", OPT_FUNC2 | HAS_ARG | OPT_VIDEO | OPT_EXPERT, {(void*)opt_bsf}, "", "bitstream filter" },
3843
    { "sbsf", OPT_FUNC2 | HAS_ARG | OPT_SUBTITLE | OPT_EXPERT, {(void*)opt_bsf}, "", "bitstream filter" },
3837 3844

  
3838 3845
    { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
3839 3846
    { NULL, },

Also available in: Unified diff