You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit '029cf99c5166b36f33381cd8ebfa5f1f1f463d1f'
* commit '029cf99c5166b36f33381cd8ebfa5f1f1f463d1f':
mov: Save number of stsd elements after stream extradata allocation
Mostly noop, see 8b43ee4054
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
@@ -2332,8 +2332,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
{
|
{
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
MOVStreamContext *sc;
|
MOVStreamContext *sc;
|
||||||
int ret;
|
int ret, entries;
|
||||||
int entries;
|
|
||||||
|
|
||||||
if (c->fc->nb_streams < 1)
|
if (c->fc->nb_streams < 1)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -2342,7 +2341,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
|
|
||||||
avio_r8(pb); /* version */
|
avio_r8(pb); /* version */
|
||||||
avio_rb24(pb); /* flags */
|
avio_rb24(pb); /* flags */
|
||||||
entries = avio_rb32(pb); /* entries */
|
entries = avio_rb32(pb);
|
||||||
|
|
||||||
if (entries <= 0) {
|
if (entries <= 0) {
|
||||||
av_log(c->fc, AV_LOG_ERROR, "invalid STSD entries %d\n", entries);
|
av_log(c->fc, AV_LOG_ERROR, "invalid STSD entries %d\n", entries);
|
||||||
|
Reference in New Issue
Block a user