Skip to content

Commit f78ffe3

Browse files
committedFeb 13, 2022
avcodec/flv.h: Split header into encoder-only and decoder-only headers
Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent 876d0af commit f78ffe3

File tree

8 files changed

+36
-16
lines changed

8 files changed

+36
-16
lines changed
 

‎libavcodec/flvdec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "libavutil/imgutils.h"
2222

23-
#include "flv.h"
23+
#include "flvdec.h"
2424
#include "h263dec.h"
2525
#include "mpegvideo.h"
2626
#include "mpegvideodata.h"

‎libavcodec/flvdec.h

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* FLV decoder header.
3+
*
4+
* This file is part of FFmpeg.
5+
*
6+
* FFmpeg is free software; you can redistribute it and/or
7+
* modify it under the terms of the GNU Lesser General Public
8+
* License as published by the Free Software Foundation; either
9+
* version 2.1 of the License, or (at your option) any later version.
10+
*
11+
* FFmpeg is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
* Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public
17+
* License along with FFmpeg; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+
*/
20+
21+
#ifndef AVCODEC_FLVDEC_H
22+
#define AVCODEC_FLVDEC_H
23+
24+
#include "mpegvideo.h"
25+
26+
int ff_flv_decode_picture_header(MpegEncContext *s);
27+
28+
#endif /* AVCODEC_FLVDEC_H */

‎libavcodec/flvenc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21-
#include "flv.h"
21+
#include "flvenc.h"
2222
#include "h263data.h"
2323
#include "mpegvideo.h"
2424
#include "mpegvideodata.h"

‎libavcodec/flv.h ‎libavcodec/flvenc.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FLV specific private header.
2+
* FLV encoder header.
33
*
44
* This file is part of FFmpeg.
55
*
@@ -18,17 +18,14 @@
1818
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21-
#ifndef AVCODEC_FLV_H
22-
#define AVCODEC_FLV_H
21+
#ifndef AVCODEC_FLVENC_H
22+
#define AVCODEC_FLVENC_H
2323

24-
#include "get_bits.h"
2524
#include "mpegvideo.h"
2625
#include "put_bits.h"
2726

2827
void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number);
2928
void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run,
3029
int last);
3130

32-
int ff_flv_decode_picture_header(MpegEncContext *s);
33-
3431
#endif /* AVCODEC_FLV_H */

‎libavcodec/h263dec.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727

2828
#define UNCHECKED_BITSTREAM_READER 1
2929

30-
#include "libavutil/video_enc_params.h"
31-
3230
#include "avcodec.h"
3331
#include "error_resilience.h"
34-
#include "flv.h"
32+
#include "flvdec.h"
3533
#include "h263.h"
3634
#include "h263dec.h"
3735
#if FF_API_FLAG_TRUNCATED

‎libavcodec/ituh263dec.c

-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
*/
2929

3030
#define UNCHECKED_BITSTREAM_READER 1
31-
#include <limits.h>
3231

3332
#include "libavutil/attributes.h"
3433
#include "libavutil/imgutils.h"
@@ -43,7 +42,6 @@
4342
#include "mathops.h"
4443
#include "mpegutils.h"
4544
#include "unary.h"
46-
#include "flv.h"
4745
#include "rv10.h"
4846
#include "mpeg4video.h"
4947
#include "mpegvideodata.h"

‎libavcodec/ituh263enc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
#include "avcodec.h"
3535
#include "mpegvideo.h"
3636
#include "mpegvideodata.h"
37+
#include "flvenc.h"
3738
#include "h263.h"
3839
#include "h263enc.h"
3940
#include "h263data.h"
4041
#include "mathops.h"
4142
#include "mpegutils.h"
42-
#include "flv.h"
4343
#include "internal.h"
4444

4545
/**

‎libavcodec/mpegvideo_enc.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@
6161
#include "pixblockdsp.h"
6262
#include "qpeldsp.h"
6363
#include "faandct.h"
64-
#include "thread.h"
6564
#include "aandcttab.h"
66-
#include "flv.h"
65+
#include "flvenc.h"
6766
#include "mpeg4video.h"
6867
#include "mpeg4videodata.h"
6968
#include "mpeg4videoenc.h"

0 commit comments

Comments
 (0)
Please sign in to comment.