aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-24 05:24:03 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-26 03:03:59 +0100
commit1897286d05506007e5c57e0ea7a3af246fad4fee (patch)
treedf0c128ce83042d4c14df4d582dca6bbf986daf6 /libavformat
parent05457a3661371f7248b5602bf96c5011ab0b0d25 (diff)
downloadffmpeg-1897286d05506007e5c57e0ea7a3af246fad4fee.tar.gz
avformat/libgme: Actually set the duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/libgme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/libgme.c b/libavformat/libgme.c
index f9d9abaad5..ad59971fcd 100644
--- a/libavformat/libgme.c
+++ b/libavformat/libgme.c
@@ -142,7 +142,7 @@ static int read_header_gme(AVFormatContext *s)
return AVERROR(ENOMEM);
}
avpriv_set_pts_info(st, 64, 1, 1000);
- if (st->duration > 0)
+ if (duration > 0)
st->duration = duration;
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE);