[PATCH] ffserver: set the sample aspect ratio.
Nicolas George
nicolas.george
Wed Feb 16 14:44:31 CET 2011
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
(cherry picked from commit 6741f7c9be4913e084ad067571f3f29853ec5d5a)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34c340d49f2e6ca5190f16ced82da32561a7bef2
---
ffserver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffserver.c b/ffserver.c
index cbf04aa..58d4112 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3487,7 +3487,7 @@ static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int cop
fst->priv_data = av_mallocz(sizeof(FeedData));
fst->index = stream->nb_streams;
av_set_pts_info(fst, 33, 1, 90000);
- fst->sample_aspect_ratio = (AVRational){0,1};
+ fst->sample_aspect_ratio = codec->sample_aspect_ratio;
stream->streams[stream->nb_streams++] = fst;
return fst;
}
More information about the ffmpeg-cvslog
mailing list