Changeset 2b77a2f7 in ffmpeg


Ignore:
Timestamp:
Aug 18, 2021, 10:07:46 AM (3 years ago)
Author:
Martin Storsjö <martin@martin.st>
Branches:
master
Children:
4cdab8d0
Parents:
dbe40478
git-author:
Hu Weiwen <sehuww@mail.scut.edu.cn> (08/12/21 04:43:54)
git-committer:
Martin Storsjö <martin@martin.st> (08/18/21 10:07:46)
Message:

movenc: Ensure no separate moof written for empty track

track->mdat_buf can be not NULL while the track is still empty if the
last packet write failed.

Signed-off-by: Hu Weiwen <sehuww@mail.scut.edu.cn>
Signed-off-by: Martin Storsjö <martin@martin.st>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavformat/movenc.c

    rdbe40478 r2b77a2f7  
    54235423                       track->cluster[0].dts;
    54245424        if (mov->flags & FF_MOV_FLAG_SEPARATE_MOOF) {
    5425             if (!track->mdat_buf)
     5425            if (!track->entry)
    54265426                continue;
    54275427            mdat_size = avio_tell(track->mdat_buf);
Note: See TracChangeset for help on using the changeset viewer.