mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
theoraenc: Use GAP flag when possible
Set TH_ENCCTL_SET_DUPLICATE_FLAG when we see a gap flag, to indicate to the encoder that the current frame is a duplicate of the previous frame.
This commit is contained in:
parent
e21501043b
commit
19141759c1
1 changed files with 5 additions and 0 deletions
|
@ -1376,6 +1376,11 @@ theora_enc_encode_and_push (GstTheoraEnc * enc, ogg_packet op,
|
|||
goto multipass_read_failed;
|
||||
}
|
||||
}
|
||||
#ifdef TH_ENCCTL_SET_DUPLICATE_FLAG
|
||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_GAP)) {
|
||||
th_encode_ctl (enc->encoder, TH_ENCCTL_SET_DUPLICATE_FLAG, NULL, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
res = th_encode_ycbcr_in (enc->encoder, ycbcr);
|
||||
/* none of the failure cases can happen here */
|
||||
|
|
Loading…
Reference in a new issue