mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
mpegvparse: Fix last start code position when input buffer is empty
When the input buffer is empty and we need more data to determine whether or not to terminate the previous frame, the last start code location needs to be set to 4 bytes before the the current position (size of start_code is 32-bits) https://bugzilla.gnome.org/show_bug.cgi?id=711627
This commit is contained in:
parent
660979bbf2
commit
7c23a6f23c
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ next:
|
|||
} else {
|
||||
GST_LOG_OBJECT (mpvparse, "need more data");
|
||||
/* resume scan where we left it */
|
||||
mpvparse->last_sc = size - 3;
|
||||
mpvparse->last_sc = size - 4;
|
||||
/* request best next available */
|
||||
off = G_MAXUINT;
|
||||
goto exit;
|
||||
|
|
Loading…
Reference in a new issue