mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
movenc: add some default cases.
This fixes crashes when copying a data track as in trac issue #236. No proper timecode tracks will be written though. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
50059bde77
commit
40393ac568
@ -1316,6 +1316,10 @@ static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
|
||||
} else if (track->enc->codec_tag == MKTAG('r','t','p',' ')) {
|
||||
hdlr_type = "hint";
|
||||
descr = "HintHandler";
|
||||
} else {
|
||||
hdlr = "dhlr";
|
||||
hdlr_type = "url ";
|
||||
descr = "DataHandler";
|
||||
}
|
||||
}
|
||||
|
||||
@ -3207,6 +3211,8 @@ static int mov_write_header(AVFormatContext *s)
|
||||
}
|
||||
}else if(st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE){
|
||||
track->timescale = st->codec->time_base.den;
|
||||
}else{
|
||||
track->timescale = MOV_TIMESCALE;
|
||||
}
|
||||
if (!track->height)
|
||||
track->height = st->codec->height;
|
||||
|
Loading…
Reference in New Issue
Block a user