changeset 4880:1c4ca5c32f0f libavformat

Remove unused code from Westwood VQA/AUD demuxer.
author reimar
date Thu, 16 Apr 2009 12:39:14 +0000
parents 42e183e59515
children 65f1c3bb0bd6
files westwood.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/westwood.c	Thu Apr 16 00:41:31 2009 +0000
+++ b/westwood.c	Thu Apr 16 12:39:14 2009 +0000
@@ -60,7 +60,6 @@
 
 #define VQA_HEADER_SIZE 0x2A
 #define VQA_FRAMERATE 15
-#define VQA_VIDEO_PTS_INC (90000 / VQA_FRAMERATE)
 #define VQA_PREAMBLE_SIZE 8
 
 typedef struct WsAudDemuxContext {
@@ -81,7 +80,6 @@
     int video_stream_index;
 
     int64_t audio_frame_counter;
-    int64_t video_pts;
 } WsVqaDemuxContext;
 
 static int wsaud_probe(AVProbeData *p)
@@ -308,8 +306,6 @@
         url_fseek(pb, chunk_size, SEEK_CUR);
     } while (chunk_tag != FINF_TAG);
 
-    wsvqa->video_pts = wsvqa->audio_frame_counter = 0;
-
     return 0;
 }
 
@@ -349,7 +345,6 @@
                 wsvqa->audio_frame_counter += AV_RL16(pkt->data) / wsvqa->audio_channels;
             } else {
                 pkt->stream_index = wsvqa->video_stream_index;
-                wsvqa->video_pts += VQA_VIDEO_PTS_INC;
             }
             /* stay on 16-bit alignment */
             if (skip_byte)