Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | Upstream-status: Pending |
| 2 | |
| 3 | --- a/modules/video_chroma/chain.c |
| 4 | +++ b/modules/video_chroma/chain.c |
| 5 | @@ -280,8 +280,9 @@ static int BuildTransformChain( filter_t |
| 6 | return VLC_SUCCESS; |
| 7 | |
| 8 | /* Lets try resize+chroma first, then transform */ |
| 9 | - msg_Dbg( p_filter, "Trying to build chroma+resize" ); |
| 10 | - EsFormatMergeSize( &fmt_mid, &p_filter->fmt_out, &p_filter->fmt_in ); |
| 11 | + msg_Dbg( p_filter, "Trying to build chroma+resize, then transform" ); |
| 12 | + es_format_Copy( &fmt_mid, &p_filter->fmt_out ); |
| 13 | + video_format_TransformTo(&fmt_mid.video, p_filter->fmt_in.video.orientation); |
| 14 | i_ret = CreateChain( p_filter, &fmt_mid ); |
| 15 | es_format_Clean( &fmt_mid ); |
| 16 | if( i_ret == VLC_SUCCESS ) |