summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-01-20 16:46:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-22 14:42:53 +0100
commit378b7beff55ced231e43b6892f1e6ad5146dcafd (patch)
tree3e231aaafb3d44c834ab2fa6eb6a77a1d25c2bf3 /libavcodec
parente9a6152e17c7c9b4fc29e70bc6c25452df2177ec (diff)
mpeg12: fixed parsing in some mpeg2 streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index e83c35c7ec..d34b54d76c 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2216,6 +2216,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
pc->frame_start_found = 4;
}
if (state == SEQ_END_CODE) {
+ pc->frame_start_found = 0;
pc->state=-1;
return i+1;
}