Always take it from lavfi. This way we don't need a clearly defined
corresponding input stream.
---
avconv.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/avconv.c b/avconv.c
index 631e3ab..c0e85e3 100644
--- a/avconv.c
+++ b/avconv.c
@@ -562,7 +562,6 @@ static int configure_video_filters(InputStream *ist,
OutputStream *ost)
AVFilterContext *last_filter, *filter;
/** filter graph containing all filters including input & output */
AVCodecContext *codec = ost->st->codec;
- AVCodecContext *icodec = ist->st->codec;
SinkContext sink_ctx = { .pix_fmts = choose_pixel_fmts(ost) };
AVRational sample_aspect_ratio;
char args[255];
@@ -589,7 +588,7 @@ static int configure_video_filters(InputStream *ist,
OutputStream *ost)
return ret;
last_filter = ost->input_video_filter;
- if (codec->width != icodec->width || codec->height != icodec->height) {
+ if (codec->width || codec->height) {
snprintf(args, 255, "%d:%d:flags=0x%X",
codec->width,
codec->height,
@@ -2337,11 +2336,6 @@ static int transcode_init(OutputFile *output_files,
ost->resample_channels = icodec->channels;
break;
case AVMEDIA_TYPE_VIDEO:
- if (!codec->width || !codec->height) {
- codec->width = icodec->width;
- codec->height = icodec->height;
- }
-
/*
* We want CFR output if and only if one of those is true:
* 1) user specified output framerate with -r
--
1.7.9.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel