Commit 096231d4 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: Dont crash on avi packets that belong to dv streams in dv in avi

Fixes null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9789b6ca
...@@ -958,6 +958,11 @@ start_sync: ...@@ -958,6 +958,11 @@ start_sync:
st = s->streams[n]; st = s->streams[n];
ast = st->priv_data; ast = st->priv_data;
if (!ast) {
av_log(s, AV_LOG_WARNING, "Skiping foreign stream %d packet\n", n);
continue;
}
if(s->nb_streams>=2){ if(s->nb_streams>=2){
AVStream *st1 = s->streams[1]; AVStream *st1 = s->streams[1];
AVIStream *ast1= st1->priv_data; AVIStream *ast1= st1->priv_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment