summaryrefslogtreecommitdiff
path: root/libavformat/asf.h
diff options
context:
space:
mode:
authorKohn Emil Dan <emild@cs.technion.ac.il>2006-07-29 16:07:19 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-07-29 16:07:19 +0000
commitb6eaae39b4913db81d9e3d0ad6a2f6261757d83d (patch)
tree1b3c5439bf4bbcc6ee4884edd28fddda12ecd640 /libavformat/asf.h
parentea3a790e0dbc958eadb71132715257ccb4b47a55 (diff)
The reader ignores the size of the ASF data object and keeps on
reading even beyond it. Therefore if the ASF file includes an index object at its end, the reader will treat the index like data, but of course will fail since it thinks that the data is corrupted. When reading an asf file with an index object, ffmpeg will complain at the end of the file that it read an invalid header. Patch by Kohn Emil Dan, < emild A cs P technion P ac P il > Original thead: Date: Apr 18, 2006 4:11 PM Subject: [Ffmpeg-devel] Two ASF related bugs and fixes Originally committed as revision 5857 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.h')
-rw-r--r--libavformat/asf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/asf.h b/libavformat/asf.h
index 8dcf7716f1..476a089d56 100644
--- a/libavformat/asf.h
+++ b/libavformat/asf.h
@@ -32,7 +32,7 @@ typedef struct {
int ds_data_size;
int ds_silence_data;
- int packet_pos;
+ int64_t packet_pos;
} ASFStream;
@@ -98,6 +98,8 @@ typedef struct {
ByteIOContext pb;
/* only for reading */
uint64_t data_offset; /* begining of the first data packet */
+ uint64_t data_object_offset; /* data object offset (excl. GUID & size)*/
+ uint64_t data_object_size; /* size of the data object */
ASFMainHeader hdr;
@@ -117,7 +119,7 @@ typedef struct {
int packet_obj_size;
int packet_time_delta;
int packet_time_start;
- int packet_pos;
+ int64_t packet_pos;
int stream_index;