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
a800fd5f
Commit
a800fd5f
authored
Jan 09, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yuv4mpeg: do not use deprecated functions
Use the libavutil replacement.
parent
fba8e5b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
yuv4mpeg.c
libavformat/yuv4mpeg.c
+4
-2
No files found.
libavformat/yuv4mpeg.c
View file @
a800fd5f
...
...
@@ -18,6 +18,8 @@
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/pixdesc.h"
#include "avformat.h"
#include "internal.h"
...
...
@@ -128,8 +130,8 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
st
->
codec
->
pix_fmt
!=
AV_PIX_FMT_GRAY8
)
{
// Adjust for smaller Cb and Cr planes
av
codec
_get_chroma_sub_sample
(
st
->
codec
->
pix_fmt
,
&
h_chroma_shift
,
&
v_chroma_shift
);
av
_pix_fmt
_get_chroma_sub_sample
(
st
->
codec
->
pix_fmt
,
&
h_chroma_shift
,
&
v_chroma_shift
);
width
>>=
h_chroma_shift
;
height
>>=
v_chroma_shift
;
...
...
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