Fixes Ticket4546
Signed-off-by: Ganesh Ajjanagadde <[email protected]>
---
libavformat/isom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/isom.c b/libavformat/isom.c
index db9129b..69e408e 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -456,8 +456,8 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc,
AVStream *st, AVIOContext
int object_type_id = avio_r8(pb);
avio_r8(pb); /* stream type */
avio_rb24(pb); /* buffer size db */
- avio_rb32(pb); /* max bitrate */
- avio_rb32(pb); /* avg bitrate */
+ st->codec->rc_max_rate = avio_rb32(pb); /* max bitrate */
+ st->codec->bit_rate = avio_rb32(pb); /* avg bitrate */
if(avcodec_is_open(st->codec)) {
av_log(fc, AV_LOG_DEBUG, "codec open in read_dec_config_descr\n");
--
2.4.5
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel