[gegl] ff-load: make video-less decoding also work for mp3 files
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] ff-load: make video-less decoding also work for mp3 files
- Date: Mon, 22 Jan 2018 06:40:00 +0000 (UTC)
commit babe834d4f9ef791b9333bd8cab4757d01f2e41b
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Jan 22 07:38:30 2018 +0100
ff-load: make video-less decoding also work for mp3 files
Though for both ogg vorbis and mp3 that have been tested, the duration is off
and decoding stops after a the first handfuls of seconds.
operations/external/ff-load.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index fb119be..670a15b 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -325,6 +325,9 @@ decode_frame (GeglOperation *operation,
}
decodeframe = frame;
+ if (p->video_stream)
+ {
+
if (frame < 2 || frame > prevframe + 64 || frame < prevframe )
{
int64_t seek_target = av_rescale_q (((frame) * AV_TIME_BASE * 1.0) / o->frame_rate
@@ -393,6 +396,7 @@ decode_frame (GeglOperation *operation,
while (!got_picture);
}
while (decodeframe <= frame + p->codec_delay);
+ }
p->prevframe = frame;
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]