OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09ed809
)
rtpdec_vp8: Avoid a warning about a possibly unused variable
author
Martin Storsjö
<martin@martin.st>
Mon, 7 Jan 2013 20:02:07 +0000
(22:02 +0200)
committer
Martin Storsjö
<martin@martin.st>
Tue, 8 Jan 2013 15:43:11 +0000
(17:43 +0200)
The warning is a false positive, but I prefer actually initializing
it over masking it with av_uninit, since the code is not performance
critical.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_vp8.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec_vp8.c
b/libavformat/rtpdec_vp8.c
index
966f7b8
..
13efa54
100644
(file)
--- a/
libavformat/rtpdec_vp8.c
+++ b/
libavformat/rtpdec_vp8.c
@@
-70,7
+70,7
@@
static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
int extended_bits, part_id;
int pictureid_present = 0, tl0picidx_present = 0, tid_present = 0,
keyidx_present = 0;
- int pictureid = -1, pictureid_mask;
+ int pictureid = -1, pictureid_mask
= 0
;
int returned_old_frame = 0;
uint32_t old_timestamp;