Merge remote-tracking branch 'qatar/master'
* qatar/master: ttadec: unbreak playback of matroska files vorbisdec: avoid invalid memory access Fix uninitialized reads on malformed ogg files. huffyuv: add padding to classic (v1) huffman tables. png: convert to bytestream2 API. dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2 avs: fix infinite loop on end-of-stream. tiffdec: Prevent illegal memory access caused by recycled pointers. rtpenc: Fix the AVRational used for av_rescale_q_rnd wma: fix off-by-one in array bounds check. Conflicts: libavcodec/huffyuv.c libavcodec/pngdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -138,7 +138,7 @@ static int rtp_write_header(AVFormatContext *s1)
|
||||
s->max_frames_per_packet =
|
||||
av_rescale_q_rnd(s1->max_delay,
|
||||
AV_TIME_BASE_Q,
|
||||
(AVRational){ frame_size / st->codec->sample_rate },
|
||||
(AVRational){ frame_size, st->codec->sample_rate },
|
||||
AV_ROUND_DOWN);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user