mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
Always give the most video restricted caps possible
When the video caps aren't fixed yet, make sure we return the most precise set of caps. It seems a regression was introduced in cc082f, causing restricted caps to never be used if the context == NULL None of the restricted caps generation uses the context, so no need to check whether the context. Fixes bug #578160.
This commit is contained in:
parent
a1384f990b
commit
19e81024a3
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ gst_ff_vid_caps_new (AVCodecContext * context, enum CodecID codec_id,
|
|||
"framerate", GST_TYPE_FRACTION,
|
||||
context->time_base.den / context->ticks_per_frame,
|
||||
context->time_base.num, NULL);
|
||||
} else if (context) {
|
||||
} else {
|
||||
/* so we are after restricted caps in this case */
|
||||
switch (codec_id) {
|
||||
case CODEC_ID_H261:
|
||||
|
|
Loading…
Reference in a new issue