GNOME Bugzilla – Bug 738532
vc1parse: select caps according to wmv format at negotiation
Last modified: 2014-10-25 12:13:46 UTC
My hardware decoder can decode both WMV3 and WVC1, but it request different header-format/stream-format for each WMV format. So my decoder caps are basically: video/x-wmv format: WVC1 stream-format: bdu width: [ 1, 2147483647 ] height: [ 1, 2147483647 ] video/x-wmv format: WMV3 header-format: sequence-layer-raw-frame width: [ 1, 2147483647 ] height: [ 1, 2147483647 ] But currently, when we negotiate the output format in vc1parse element, it keeps the first structure regardless of the format.
Created attachment 288522 [details] [review] vc1parse: select caps according to wmv format at negotiation Patch proposal to fix the issue. At negotiation, I intersect according to WMV format to select caps.
Ooops there is a typo issue for my decoder caps in WMV3: it's header-format: sequence-layer, not header-format: sequence-layer-raw-frame
commit 89455b710629e5c842512ad5d93cff6b771d0d72 Author: Aurélien Zanelli <aurelien.zanelli@parrot.com> Date: Wed Oct 1 16:17:46 2014 +0200 vc1parse: select caps according to wmv format at negotiation Some VC1 decoder can have different caps according to wmv format, ie WMV3 or WVC1. So instead of keeping the first available caps, we interserct with current WMV format. https://bugzilla.gnome.org/show_bug.cgi?id=738532