mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Merge commit '50dbe6b3544fa64d5611e16553bf542fd71276b8'
* commit '50dbe6b3544fa64d5611e16553bf542fd71276b8': mov: fix assigment check Conflicts: libavformat/mov.c See: af2e5061bbcabf5eae780929fa25784b6127759e Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
eeb9242b62
@ -3923,7 +3923,7 @@ static int mov_read_header(AVFormatContext *s)
|
|||||||
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
|
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
|
||||||
sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
|
sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
|
||||||
if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
||||||
if (st->codec->width <= 0 && st->codec->height <= 0) {
|
if (st->codec->width <= 0 || st->codec->height <= 0) {
|
||||||
st->codec->width = sc->width;
|
st->codec->width = sc->width;
|
||||||
st->codec->height = sc->height;
|
st->codec->height = sc->height;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user