ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
Wed Mar 24 05:24:03 2021 +0100| [1897286d05506007e5c57e0ea7a3af246fad4fee] | 
committer: Andreas Rheinhardt

avformat/libgme: Actually set the duration

Signed-off-by: Andreas Rheinhardt <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1897286d05506007e5c57e0ea7a3af246fad4fee
---

 libavformat/libgme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to