diff options
author | John Coiner <jpcoiner@gmail.com> | 2023-02-12 18:06:07 -0500 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-02-19 22:50:32 +0100 |
commit | 691d01989936d4b0681aa226aea8a19f06c04cea (patch) | |
tree | e3cea0670e0270092be73ad5cd1507c66233ca23 /libavcodec/vaapi_encode_mjpeg.c | |
parent | 65873ac3eef359f6557ee883913ccba57ca11087 (diff) | |
download | ffmpeg-691d01989936d4b0681aa226aea8a19f06c04cea.tar.gz |
avformat/mpegtsenc: re-emit extradata ahead of IDR pictures even if AUD is already present
Current mpegtsenc code only inserts SPS/PPS from extradata before IDR frames if
AUD is also inserted.
Unfortunately some encoders may preface a key frame with an AUD, but no
SPS/PPS. In that case current code does not repeat the "extradata" and the
resulting HLS stream may become noncompliant and unjoinable.
Fix this by always inserting SPS/PPS and moving AUD to the beginning of the
packet if it is already present.
Fixes ticket #10148.
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit e0cb89c354ea654bccc524a8a45321b93cb256d3)
Diffstat (limited to 'libavcodec/vaapi_encode_mjpeg.c')
0 files changed, 0 insertions, 0 deletions