Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c80a8161
Commit
c80a8161
authored
Oct 08, 2014
by
Rémi Denis-Courmont
Committed by
Janne Grunau
Oct 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h263dec: call get_format() on resolution changes
Fail safe if the pixel format changes.
parent
1f29e5d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
h263dec.c
libavcodec/h263dec.c
+6
-0
No files found.
libavcodec/h263dec.c
View file @
c80a8161
...
@@ -513,6 +513,12 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -513,6 +513,12 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
if
((
ret
=
ff_mpv_common_frame_size_change
(
s
)))
if
((
ret
=
ff_mpv_common_frame_size_change
(
s
)))
return
ret
;
return
ret
;
if
(
avctx
->
pix_fmt
!=
h263_get_format
(
avctx
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"format change not supported
\n
"
);
avctx
->
pix_fmt
=
AV_PIX_FMT_NONE
;
return
AVERROR_UNKNOWN
;
}
}
}
if
(
s
->
codec_id
==
AV_CODEC_ID_H263
||
if
(
s
->
codec_id
==
AV_CODEC_ID_H263
||
...
...
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