mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
tag: id3v2: turn redundant check into an assert
We checked this already earlier, so this is dead code. Leave an assert in place for consistency with the other branch and in case the rest of the code changes. CID 1397350.
This commit is contained in:
parent
15123c0455
commit
2cfb446eb9
1 changed files with 1 additions and 2 deletions
|
@ -243,8 +243,7 @@ gst_tag_list_from_id3v2_tag (GstBuffer * buffer)
|
|||
goto not_enough_data; /* Invalid frame size */
|
||||
work.hdr.frame_data_size = read_size - ID3V2_HDR_SIZE - 10;
|
||||
} else {
|
||||
if (read_size < ID3V2_HDR_SIZE)
|
||||
goto not_enough_data; /* Invalid frame size */
|
||||
g_assert (read_size >= ID3V2_HDR_SIZE); /* checked above */
|
||||
work.hdr.frame_data_size = read_size - ID3V2_HDR_SIZE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue