diff options
author | Georgi Chorbadzhiyski <gf@unixsol.org> | 2011-01-25 12:58:31 +0200 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-25 12:52:45 +0000 |
commit | 6e78c8ee9420cc8e8899462b59e2305b4c056081 (patch) | |
tree | 240c4ad23aa4fda85b24075d0bb84b6fdde40a57 /libavformat/mpegtsenc.c | |
parent | 3adbe49f2b1a25d2fd44080167b6519c4ce4e30e (diff) | |
download | ffmpeg-6e78c8ee9420cc8e8899462b59e2305b4c056081.tar.gz |
mpegtsenc: remove unused variables
Remove two variables that were not used and caused the following
warnings:
CC libavformat/mpegtsenc.o
libavformat/mpegtsenc.c: In function 'mpegts_write_section':
libavformat/mpegtsenc.c:72:18: warning: unused variable 'ts'
libavformat/mpegtsenc.c: In function 'mpegts_insert_null_packet':
libavformat/mpegtsenc.c:586:18: warning: unused variable 'ts'
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index f33b6c6b73..f621646c52 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -69,7 +69,6 @@ typedef struct MpegTSWrite { /* NOTE: 4 bytes must be left at the end for the crc32 */ static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len) { - MpegTSWrite *ts = ((AVFormatContext*)s->opaque)->priv_data; unsigned int crc; unsigned char packet[TS_PACKET_SIZE]; const unsigned char *buf_ptr; @@ -583,7 +582,6 @@ static uint8_t* write_pcr_bits(uint8_t *buf, int64_t pcr) /* Write a single null transport stream packet */ static void mpegts_insert_null_packet(AVFormatContext *s) { - MpegTSWrite *ts = s->priv_data; uint8_t *q; uint8_t buf[TS_PACKET_SIZE]; |