mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
jpegparse: Don't generate timestamp for 0/1 framerates
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2194>
This commit is contained in:
parent
00e1561bf2
commit
4b47b96ae1
1 changed files with 2 additions and 1 deletions
|
@ -721,7 +721,8 @@ gst_jpeg_parse_pre_push_frame (GstBaseParse * bparse, GstBaseParseFrame * frame)
|
|||
GstJpegParse *parse = GST_JPEG_PARSE_CAST (bparse);
|
||||
GstBuffer *outbuf = frame->buffer;
|
||||
|
||||
if (parse->has_fps && !GST_CLOCK_TIME_IS_VALID (parse->next_ts))
|
||||
if (parse->has_fps && parse->framerate_numerator != 0
|
||||
&& !GST_CLOCK_TIME_IS_VALID (parse->next_ts))
|
||||
parse->next_ts = bparse->segment.start;
|
||||
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = parse->next_ts;
|
||||
|
|
Loading…
Reference in a new issue