]> git.sesse.net Git - ffmpeg/commit
avformat/segment: populate empty outer stream extradata from packet
authorGyan Doshi <ffmpeg@gyani.pro>
Tue, 21 May 2019 11:45:54 +0000 (17:15 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Tue, 28 May 2019 07:00:29 +0000 (12:30 +0530)
commiteae251ead9e380c722dce7ac3f4e97017bff9a7b
treeeb0f764afaacc1675547c1c5bd13fe76c2f27c18
parent9b069eb14e07d8faec32f2eef2d12e514290268f
avformat/segment: populate empty outer stream extradata from packet

At present, if the outer stream extradata is empty but first packet
has extradata as a side data element, then only the first segment's
muxer instance may be able to extract this side data and use it.
For all other segments, extradata in packet side data could be missing
and generated segments may be invalid or unplayable in some apps
e.g. for an ADTS AAC stream segmented to MP4, the adtstoasc BSF will
add extradata to the first packet. The MOV muxer for the first segment
will add this to codecpar for the inner stream and write
Decoder Specific Information within the esds box. For other segments,
their esds' will not have this decSpecificInfo and they can't be opened
in Quicktime player or by services like nginx-vod-module.
libavformat/segment.c