Commit aa489cf0 authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

demux/mkv: fix accidental copy where a reference is needed

This bug caused properties that should be associated with the different
tracks (such as es_format_t.i_priority) to be written to a local copy,
instead of actually propagating to where they should be.
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent f5673b34
......@@ -904,8 +904,8 @@ void matroska_segment_c::ComputeTrackPriority()
for( tracks_map_t::iterator it = tracks.begin(); it != tracks.end(); ++it )
{
tracks_map_t::key_type track_id = it->first;
tracks_map_t::mapped_type track = it->second;
tracks_map_t::key_type track_id = it->first;
tracks_map_t::mapped_type& track = it->second;
if( unlikely( track.fmt.i_cat == UNKNOWN_ES || !track.psz_codec ) )
{
......
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