diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-05 08:48:24 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-01 08:33:21 +0200 |
commit | 383136264ef40452efd86cafb2d7221cd3830b3d (patch) | |
tree | 37b714d446bfab3e11512da62d22555b6445af6e /avconv_filter.c | |
parent | 41776ba9c0ebbb71394cefdf7dd1b243e6c852d5 (diff) | |
download | ffmpeg-383136264ef40452efd86cafb2d7221cd3830b3d.tar.gz |
avconv: do not use the stream codec context for encoding
Diffstat (limited to 'avconv_filter.c')
-rw-r--r-- | avconv_filter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avconv_filter.c b/avconv_filter.c index c667992165..1eda7b845e 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -39,8 +39,8 @@ #define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name) \ static char *choose_ ## var ## s(OutputStream *ost) \ { \ - if (ost->st->codec->var != none) { \ - get_name(ost->st->codec->var); \ + if (ost->enc_ctx->var != none) { \ + get_name(ost->enc_ctx->var); \ return av_strdup(name); \ } else if (ost->enc && ost->enc->supported_list) { \ const type *p; \ @@ -231,7 +231,7 @@ static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter, char *pix_fmts; OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; - AVCodecContext *codec = ost->st->codec; + AVCodecContext *codec = ost->enc_ctx; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; int ret; @@ -319,7 +319,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, { OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; - AVCodecContext *codec = ost->st->codec; + AVCodecContext *codec = ost->enc_ctx; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; char *sample_fmts, *sample_rates, *channel_layouts; |