Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-24 07:24:03 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-26 05:03:59 +0300
commit1897286d05506007e5c57e0ea7a3af246fad4fee (patch)
treedf0c128ce83042d4c14df4d582dca6bbf986daf6 /libavformat/libgme.c
parent05457a3661371f7248b5602bf96c5011ab0b0d25 (diff)
avformat/libgme: Actually set the duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/libgme.c')
-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);