1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 21:31:13 +00:00

discard lavf packets with wrong ids

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14612 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2005-01-30 09:13:28 +00:00
parent 23bf3efd41
commit fb8a0ddba2

View File

@ -292,8 +292,10 @@ int demux_lavf_fill_buffer(demuxer_t *demux){
ds->sh=demux->v_streams[id];
mp_msg(MSGT_DEMUX,MSGL_V,"Auto-selected LAVF video ID = %d\n",ds->id);
}
} else
ds= NULL;
} else {
av_free_packet(&pkt);
return 1;
}
if(0/*pkt.destruct == av_destruct_packet*/){
//ok kids, dont try this at home :)