[libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Vladimir Pantelic
this was forgotten when we changed ASF to not output the preroll time

Signed-off-by: Vladimir Pantelic vlado...@gmail.com
---
 libavformat/asfdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index f3978f0..b99cb02 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -672,6 +672,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t 
size)
 static int asf_read_marker(AVFormatContext *s, int64_t size)
 {
 AVIOContext *pb = s-pb;
+ASFContext *asf = s-priv_data;
 int i, count, name_len, ret;
 char name[1024];
 
@@ -689,6 +690,7 @@ static int asf_read_marker(AVFormatContext *s, int64_t size)
 
 avio_rl64(pb); // offset, 8 bytes
 pres_time = avio_rl64(pb); // presentation time
+pres_time -= asf-hdr.preroll * 1;
 avio_rl16(pb); // entry length
 avio_rl32(pb); // send time
 avio_rl32(pb); // flags
-- 
1.8.1.4

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Diego Biurrun
On Thu, Sep 19, 2013 at 05:50:34PM +0200, Vladimir Pantelic wrote:
 this was forgotten when we changed ASF to not output the preroll time

Start sentences capitalized and end in a period.

Diego
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Vladimir Pantelic
On Sep 19, 2013 7:35 PM, Diego Biurrun di...@biurrun.de wrote:

 On Thu, Sep 19, 2013 at 05:50:34PM +0200, Vladimir Pantelic wrote:
  this was forgotten when we changed ASF to not output the preroll time

 Start sentences capitalized and end in a period.

period I forgot, capitalized is against my house style.


 Diego
 ___
 libav-devel mailing list
 libav-devel@libav.org
 https://lists.libav.org/mailman/listinfo/libav-devel
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Luca Barbato
On 19/09/13 19:35, Diego Biurrun wrote:
 On Thu, Sep 19, 2013 at 05:50:34PM +0200, Vladimir Pantelic wrote:
 this was forgotten when we changed ASF to not output the preroll time
 
 Start sentences capitalized and end in a period.

Subjects do not end with periods.

Please do not perpetuate bad style.

lu

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Diego Biurrun
On Thu, Sep 19, 2013 at 08:15:20PM +0200, Vladimir Pantelic wrote:
 On Sep 19, 2013 7:35 PM, Diego Biurrun di...@biurrun.de wrote:
 
  On Thu, Sep 19, 2013 at 05:50:34PM +0200, Vladimir Pantelic wrote:
   this was forgotten when we changed ASF to not output the preroll time
 
  Start sentences capitalized and end in a period.
 
 period I forgot, capitalized is against my house style.

Replace your house style with English :-) - you or whoever pushes.

Diego
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-19 Thread Diego Biurrun
On Thu, Sep 19, 2013 at 08:48:24PM +0200, Luca Barbato wrote:
 On 19/09/13 19:35, Diego Biurrun wrote:
  On Thu, Sep 19, 2013 at 05:50:34PM +0200, Vladimir Pantelic wrote:
  this was forgotten when we changed ASF to not output the preroll time
  
  Start sentences capitalized and end in a period.
 
 Subjects do not end with periods.

I see more than a subject here.  I don't mean the title? :)

Diego
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


[libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-11 Thread vladimir
this was forgotten when we changed ASF to not output the preroll time

Signed-off-by: vladimir vlado...@gmail.com
---
 libavformat/asfdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index f3978f0..b99cb02 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -672,6 +672,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t 
size)
 static int asf_read_marker(AVFormatContext *s, int64_t size)
 {
 AVIOContext *pb = s-pb;
+ASFContext *asf = s-priv_data;
 int i, count, name_len, ret;
 char name[1024];
 
@@ -689,6 +690,7 @@ static int asf_read_marker(AVFormatContext *s, int64_t size)
 
 avio_rl64(pb); // offset, 8 bytes
 pres_time = avio_rl64(pb); // presentation time
+pres_time -= asf-hdr.preroll * 1;
 avio_rl16(pb); // entry length
 avio_rl32(pb); // send time
 avio_rl32(pb); // flags
-- 
1.8.1.4

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


[libav-devel] [PATCH 1/5] asfdec: substract preroll time from marker presentation time

2013-09-11 Thread Vladimir Pantelic
this was forgotten when we changed ASF to not output the preroll time

Signed-off-by: Vladimir Pantelic vlado...@gmail.com
---
 libavformat/asfdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index f3978f0..b99cb02 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -672,6 +672,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t 
size)
 static int asf_read_marker(AVFormatContext *s, int64_t size)
 {
 AVIOContext *pb = s-pb;
+ASFContext *asf = s-priv_data;
 int i, count, name_len, ret;
 char name[1024];
 
@@ -689,6 +690,7 @@ static int asf_read_marker(AVFormatContext *s, int64_t size)
 
 avio_rl64(pb); // offset, 8 bytes
 pres_time = avio_rl64(pb); // presentation time
+pres_time -= asf-hdr.preroll * 1;
 avio_rl16(pb); // entry length
 avio_rl32(pb); // send time
 avio_rl32(pb); // flags
-- 
1.8.1.4

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel