Skip to content

Commit 56eda98

Browse files
author
Arne Morten Kvarving
committed
Merge pull request xbmc#1385 from margro/fix_trac_13165
ffmpeg: fixed: DXVA2 playback artifacts on H264 content with mbaff frame...
2 parents 6b0bff5 + 285685e commit 56eda98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ffmpeg/libavcodec/dxva2_h264.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ static void fill_picture_parameters(struct dxva_context *ctx, const H264Context
9393
pp->num_ref_frames = h->sps.ref_frame_count;
9494

9595
pp->wBitFields = ((s->picture_structure != PICT_FRAME) << 0) |
96-
(h->sps.mb_aff << 1) |
96+
((h->sps.mb_aff &&
97+
(s->picture_structure == PICT_FRAME)) << 1) |
9798
(h->sps.residual_color_transform_flag << 2) |
9899
/* sp_for_switch_flag (not implemented by FFmpeg) */
99100
(0 << 3) |

0 commit comments

Comments
 (0)