Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-26 14:40:32 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-26 15:01:06 +0400
commitba650ea11825fdf7df479313bfca2a1003ffd90e (patch)
treefb90677e59bf0fc5dd235a5a53a9b1fcae2a7857 /libavcodec/vc1_parser.c
parentd5ee74e57d44ccbf644ea76d635628ed4e5fabfb (diff)
parenta4d3c20035946cbc1509aec2dc28d51c2a2f9a8e (diff)
Merge commit 'a4d3c20035946cbc1509aec2dc28d51c2a2f9a8e'
* commit 'a4d3c20035946cbc1509aec2dc28d51c2a2f9a8e': vc1: Fix the skip condition Conflicts: libavcodec/vc1_parser.c See: ede411dd03950b91c6346f2a3ae0e7546555f42f Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1_parser.c')
-rw-r--r--libavcodec/vc1_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 8d058ad10d..8721e09614 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -127,6 +127,7 @@ static int vc1_parse(AVCodecParserContext *s,
uint8_t *unesc_buffer = vpc->unesc_buffer;
size_t unesc_index = vpc->unesc_index;
VC1ParseSearchState search_state = vpc->search_state;
+ int start_code_found;
int next = END_NOT_FOUND;
int i = vpc->bytes_to_skip;
@@ -137,8 +138,8 @@ static int vc1_parse(AVCodecParserContext *s,
next = 0;
}
while (i < buf_size) {
- int start_code_found = 0;
uint8_t b;
+ start_code_found = 0;
while (i < buf_size && unesc_index < UNESCAPED_THRESHOLD) {
b = buf[i++];
unesc_buffer[unesc_index++] = b;