Hi,

after fixing re-open in avformat producer i realize that new_seek code was never used. latest commit

http://mltframework.org/gitweb/mlt.git?p=mltframework.org/mlt.git;a=commitdiff;h=cc781be46c32b555f7675193e34ca74417aa923c

enable new_seek only for H264 in TS. May be that wrong? and new_seek code should be enabled by default for all formats except h264/ts?


--
________________________________________
Maksym Veremeyenko

>From 9cdb1e8242c7a0ec521d1253ac654b7e04a92c55 Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1stereo.tv>
Date: Sun, 3 Jul 2011 16:39:09 +0300
Subject: [PATCH 2/3] possible fix to use new_seek code

---
 src/modules/avformat/producer_avformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c
index 314bcd1..1144877 100644
--- a/src/modules/avformat/producer_avformat.c
+++ b/src/modules/avformat/producer_avformat.c
@@ -1296,7 +1296,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
 
 	// Turn on usage of new seek API and PTS for seeking
 	int use_new_seek = self->seekable &&
-		codec_context->codec_id == CODEC_ID_H264 && !strcmp( context->iformat->name, "mpegts" );
+		!(codec_context->codec_id == CODEC_ID_H264 && !strcmp( context->iformat->name, "mpegts" ));
 	if ( mlt_properties_get( properties, "new_seek" ) )
 		use_new_seek = mlt_properties_get_int( properties, "new_seek" );
 
-- 
1.7.4.4

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to