[FFmpeg-cvslog] thp: set audio packet durations
Justin Ruggles
git at videolan.org
Sun Mar 4 04:47:43 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Feb 29 18:08:46 2012 -0500| [5a9b952201e5fde03be619dc59bda10463abeefa] | committer: Justin Ruggles
thp: set audio packet durations
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a9b952201e5fde03be619dc59bda10463abeefa
---
libavformat/thp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 731f5af..5a1205e 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -181,6 +181,9 @@ static int thp_read_packet(AVFormatContext *s,
}
pkt->stream_index = thp->audio_stream_index;
+ if (thp->audiosize >= 8)
+ pkt->duration = AV_RB32(&pkt->data[4]);
+
thp->audiosize = 0;
thp->frame++;
}
More information about the ffmpeg-cvslog
mailing list