Luca Barbato <[email protected]> added the comment:
That's because the whole machinery got broken by the fact the codec defaults and
the stream defaults now are different (one is 0/0 the other 0/1). I have a
stupid patch to fix that by overwriting the value.
Still we should either rethink this monster.
diff --git a/ffserver.c b/ffserver.c
index fcc3359..d16b82a 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3782,6 +3782,8 @@ static void build_feed_streams(void)
AVStream *st;
st = feed->streams[i];
s->streams[i] = st;
+ //XXX: workaround
+ st->sample_aspect_ratio = st->codec->sample_aspect_ratio;
}
av_set_parameters(s, NULL);
if (av_write_header(s) < 0) {
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2318>
________________________________________________