mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
h264parse: fix clearing adapter forming avc output frame
... which needs to be reset upon a new frame and otherwise (only) for avc input in passthrough mode (rather than on every chain call).
This commit is contained in:
parent
a407d54d9d
commit
62d9ef42d4
1 changed files with 6 additions and 4 deletions
|
@ -171,6 +171,7 @@ gst_h264_parse_reset_frame (GstH264Parse * h264parse)
|
|||
h264parse->idr_pos = -1;
|
||||
h264parse->keyframe = FALSE;
|
||||
h264parse->frame_start = FALSE;
|
||||
gst_adapter_clear (h264parse->frame_out);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1139,13 +1140,14 @@ gst_h264_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
}
|
||||
if (h264parse->split_packetized)
|
||||
return ret;
|
||||
}
|
||||
|
||||
exit:
|
||||
else {
|
||||
/* nal processing in pass-through might have collected stuff;
|
||||
* ensure nothing happens with this later on */
|
||||
gst_adapter_clear (h264parse->frame_out);
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
return h264parse->parse_chain (pad, buffer);
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue