mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
videodec: remove some FIXMEs
This commit is contained in:
parent
0c2f43750d
commit
777d044357
1 changed files with 0 additions and 4 deletions
|
@ -421,26 +421,22 @@ gst_video_rawvideo_convert (GstVideoCodecState * state,
|
||||||
} else if (src_format == GST_FORMAT_DEFAULT &&
|
} else if (src_format == GST_FORMAT_DEFAULT &&
|
||||||
*dest_format == GST_FORMAT_TIME && fps_n) {
|
*dest_format == GST_FORMAT_TIME && fps_n) {
|
||||||
/* convert frames to time */
|
/* convert frames to time */
|
||||||
/* FIXME add segment time? */
|
|
||||||
*dest_value = gst_util_uint64_scale (src_value, GST_SECOND * fps_d, fps_n);
|
*dest_value = gst_util_uint64_scale (src_value, GST_SECOND * fps_d, fps_n);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
} else if (src_format == GST_FORMAT_TIME &&
|
} else if (src_format == GST_FORMAT_TIME &&
|
||||||
*dest_format == GST_FORMAT_DEFAULT && fps_d) {
|
*dest_format == GST_FORMAT_DEFAULT && fps_d) {
|
||||||
/* convert time to frames */
|
/* convert time to frames */
|
||||||
/* FIXME subtract segment time? */
|
|
||||||
*dest_value = gst_util_uint64_scale (src_value, fps_n, GST_SECOND * fps_d);
|
*dest_value = gst_util_uint64_scale (src_value, fps_n, GST_SECOND * fps_d);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
} else if (src_format == GST_FORMAT_TIME &&
|
} else if (src_format == GST_FORMAT_TIME &&
|
||||||
*dest_format == GST_FORMAT_BYTES && fps_d && vidsize) {
|
*dest_format == GST_FORMAT_BYTES && fps_d && vidsize) {
|
||||||
/* convert time to frames */
|
/* convert time to frames */
|
||||||
/* FIXME subtract segment time? */
|
|
||||||
*dest_value = gst_util_uint64_scale (src_value,
|
*dest_value = gst_util_uint64_scale (src_value,
|
||||||
fps_n * vidsize, GST_SECOND * fps_d);
|
fps_n * vidsize, GST_SECOND * fps_d);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
} else if (src_format == GST_FORMAT_BYTES &&
|
} else if (src_format == GST_FORMAT_BYTES &&
|
||||||
*dest_format == GST_FORMAT_TIME && fps_n && vidsize) {
|
*dest_format == GST_FORMAT_TIME && fps_n && vidsize) {
|
||||||
/* convert frames to time */
|
/* convert frames to time */
|
||||||
/* FIXME add segment time? */
|
|
||||||
*dest_value = gst_util_uint64_scale (src_value,
|
*dest_value = gst_util_uint64_scale (src_value,
|
||||||
GST_SECOND * fps_d, fps_n * vidsize);
|
GST_SECOND * fps_d, fps_n * vidsize);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue