Commit 910e28a1 authored by Laurent Aimar's avatar Laurent Aimar

Fixed real frame allocation error path.

parent d63cf29c
......@@ -542,8 +542,7 @@ static void DemuxVideo( demux_t *p_demux, real_track_t *tk, mtime_t i_dts, unsig
tk->p_frame = block_New( p_demux, tk->i_frame_size );
if( !tk->p_frame )
{
tk->i_frame_slice = 0;
tk->i_frame_slice_count = 0;
tk->i_frame_size = 0;
return;
}
......@@ -571,7 +570,7 @@ static void DemuxVideo( demux_t *p_demux, real_track_t *tk, mtime_t i_dts, unsig
/* */
tk->i_frame_slice++;
if( tk->i_frame_slice > tk->i_frame_slice_count )
if( tk->i_frame_slice > tk->i_frame_slice_count || !tk->p_frame )
break;
/* */
......
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