History

lavf/dv: remove DVMuxContext declaration from dv.h

DVMuxContext is only used inside dvenc.c, there is no reason for it to be visible outside of that file.

Anton Khirnov committed 4 years ago

Commit dcc47041 parent f89949a2 files · +3 −5Browse files

Unified · Split

2 files
  1. libavformat/dv.h +1 −3
  2. libavformat/dvenc.c +2 −2
libavformat/dv.h+1−3
@@ -1,5 +1,5 @@
11 /*
2− * General DV muxer/demuxer
2+ * General DV demuxer
33 * Copyright (c) 2003 Roman Shaposhnik
44 *
55 * Many thanks to Dan Dennedy <dan@dennedy.org> for providing wealth
@@ -36,6 +36,4 @@ int avpriv_dv_get_packet(DVDemuxContext*, AVPacket *); · 30 unmodified lines
3636 int avpriv_dv_produce_packet(DVDemuxContext*, AVPacket*, uint8_t*, int, int64_t);
3737 void ff_dv_offset_reset(DVDemuxContext *c, int64_t frame_offset);
3838
39−typedef struct DVMuxContext DVMuxContext;
40−
4139 #endif /* AVFORMAT_DV_H */
libavformat/dvenc.c+2−2
@@ -43,7 +43,7 @@ · 42 unmodified lines
4343
4444 #define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32-bit audio
4545
46−struct DVMuxContext {
46+typedef struct DVMuxContext {
4747 AVClass *av_class;
4848 const AVDVProfile* sys; /* current DV profile, e.g.: 525/60, 625/50 */
4949 int n_ast; /* number of stereo audio streams (up to 2) */
@@ -55,7 +55,7 @@ struct DVMuxContext { · 5 unmodified lines
5555 int has_video; /* frame under construction has video */
5656 uint8_t frame_buf[DV_MAX_FRAME_SIZE]; /* frame under construction */
5757 AVTimecode tc; /* timecode context */
58−};
58+} DVMuxContext;
5959
6060 static const int dv_aaux_packs_dist[12][9] = {
6161 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t