summaryrefslogtreecommitdiff
path: root/libavformat/bit.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:36:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:37:27 +0200
commitbf85b909f67a3147e5bc2224ccc1297155102af5 (patch)
tree2d7949c08f219aa6fc580ad0f09e3a9b1491780c /libavformat/bit.c
parenta5e84927962671c5ef26a29182f24e44648ef537 (diff)
downloadffmpeg-bf85b909f67a3147e5bc2224ccc1297155102af5.tar.gz
bit: remove unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bit.c')
-rw-r--r--libavformat/bit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c
index 9d4fa8e46c..28652460cf 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -49,7 +49,6 @@ static int read_packet(AVFormatContext *s,
PutBitContext pbo;
uint16_t buf[8 * MAX_FRAME_SIZE + 2];
int packet_size;
- int sync;
uint16_t* src=buf;
int i, j, ret;
int64_t pos= avio_tell(pb);
@@ -57,7 +56,7 @@ static int read_packet(AVFormatContext *s,
if(url_feof(pb))
return AVERROR_EOF;
- sync = get_le16(pb); // sync word
+ get_le16(pb); // sync word
packet_size = get_le16(pb) / 8;
if(packet_size > MAX_FRAME_SIZE)
return AVERROR(EIO);