Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
88753337
Commit
88753337
authored
Jun 21, 2012
by
Carl Eugen Hoyos
Committed by
Derek Buitenhuis
Jun 22, 2012
Browse files
utvideo: Fix interlaced prediction for RGB utvideo.
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
a5a93fa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
libavcodec/utvideo.c
libavcodec/utvideo.c
+11
-4
No files found.
libavcodec/utvideo.c
View file @
88753337
...
...
@@ -439,10 +439,17 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
plane_start
[
i
],
c
->
frame_pred
==
PRED_LEFT
);
if
(
ret
)
return
ret
;
if
(
c
->
frame_pred
==
PRED_MEDIAN
)
if
(
c
->
frame_pred
==
PRED_MEDIAN
)
{
if
(
!
c
->
interlaced
)
{
restore_median
(
c
->
pic
.
data
[
0
]
+
rgb_order
[
i
],
c
->
planes
,
c
->
pic
.
linesize
[
0
],
avctx
->
width
,
avctx
->
height
,
c
->
slices
,
0
);
c
->
pic
.
linesize
[
0
],
avctx
->
width
,
avctx
->
height
,
c
->
slices
,
0
);
}
else
{
restore_median_il
(
c
->
pic
.
data
[
0
]
+
rgb_order
[
i
],
c
->
planes
,
c
->
pic
.
linesize
[
0
],
avctx
->
width
,
avctx
->
height
,
c
->
slices
,
0
);
}
}
}
restore_rgb_planes
(
c
->
pic
.
data
[
0
],
c
->
planes
,
c
->
pic
.
linesize
[
0
],
avctx
->
width
,
avctx
->
height
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment