Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
17aa02b9
Commit
17aa02b9
authored
Jan 06, 2012
by
Paul B Mahol
Committed by
Martin Storsjö
Jan 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interplayvideo: Handle changed video dimensions on the fly
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c5d907b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interplayvideo.c
libavcodec/interplayvideo.c
+4
-4
No files found.
libavcodec/interplayvideo.c
View file @
17aa02b9
...
...
@@ -1019,9 +1019,6 @@ static av_cold int ipvideo_decode_init(AVCodecContext *avctx)
dsputil_init
(
&
s
->
dsp
,
avctx
);
/* decoding map contains 4 bits of information per 8x8 block */
s
->
decoding_map_size
=
avctx
->
width
*
avctx
->
height
/
(
8
*
8
*
2
);
s
->
current_frame
.
data
[
0
]
=
s
->
last_frame
.
data
[
0
]
=
s
->
second_last_frame
.
data
[
0
]
=
NULL
;
...
...
@@ -1036,6 +1033,9 @@ static int ipvideo_decode_frame(AVCodecContext *avctx,
int
buf_size
=
avpkt
->
size
;
IpvideoContext
*
s
=
avctx
->
priv_data
;
/* decoding map contains 4 bits of information per 8x8 block */
s
->
decoding_map_size
=
avctx
->
width
*
avctx
->
height
/
(
8
*
8
*
2
);
/* compressed buffer needs to be large enough to at least hold an entire
* decoding map */
if
(
buf_size
<
s
->
decoding_map_size
)
...
...
@@ -1096,6 +1096,6 @@ AVCodec ff_interplay_video_decoder = {
.
init
=
ipvideo_decode_init
,
.
close
=
ipvideo_decode_end
,
.
decode
=
ipvideo_decode_frame
,
.
capabilities
=
CODEC_CAP_DR1
,
.
capabilities
=
CODEC_CAP_DR1
|
CODEC_CAP_PARAM_CHANGE
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Interplay MVE video"
),
};
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