Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpegts-mythtv harmonization #927

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ee7e1e3
libavformat/mpegts-mythtv.c: constify AVInputFormats
ulmus-scott Jun 28, 2024
c1b5304
libavformat/mpegts-mythtv.c: remove comment not in upstream
ulmus-scott Jun 28, 2024
6cdb526
mpegts-mythtv.h: remove unused added defines
ulmus-scott Jun 29, 2024
c9b4de7
mpegts-mythtv.h: remove unused added STREAM_TYPE_*_DVB defines
ulmus-scott Jun 29, 2024
7800c3a
mpegts-mythtv: update DVB defines
ulmus-scott Jun 30, 2024
87a5d4f
mpegts-mythtv.h: rename DVB_CAROUSEL_ID
ulmus-scott Jun 30, 2024
ee0c6a1
mpegts-mythtv.c: MISC_types[]: match space with FFmpeg in addition
ulmus-scott Jun 30, 2024
3c011a9
mpegts-mythtv: remove dead code for identifying private streams
ulmus-scott Jun 30, 2024
77f92bb
mpegts-mythtv.h: remove unnecessary temporary variable
ulmus-scott Jun 30, 2024
4b5c35d
mpegts-mythtv.h: remove dead code from DVB VBI descriptor parsing
ulmus-scott Jun 30, 2024
fb0bcf3
mpegts-mythtv.h: remove unused MAX_PES_PAYLOAD
ulmus-scott Jun 30, 2024
45f7614
mpegts-mythtv.c: remove customization to parsing of subtitling_descri…
ulmus-scott Jul 3, 2024
eac98ca
mpegts-mythtv.c: pat_cb(): ensure all PIDs are valid
ulmus-scott Jul 22, 2024
d5d98be
mpegts-mythtv.c: remove customizations MpegTSContext::req_sid, scanni…
ulmus-scott Jul 22, 2024
240a014
mpegts-mythtv.c: remove fallback code from mpegts_read_header()
ulmus-scott Jul 22, 2024
8bf6158
mpegts-mythtv.c: remove unused addition Program::pid
ulmus-scott Jul 22, 2024
da6cbb4
mpegts-mythtv.c: replace pmt_equal_streams() with is_pmt_equal()
ulmus-scott Jul 23, 2024
c72b83d
AvFormatDecoder: ensure audio streams match the video stream
ulmus-scott Aug 2, 2024
0f95e8f
create AvFormatDecoder::autoSelectVideoTrack from ScanStreams()
ulmus-scott Aug 2, 2024
d7ddb85
move pmt_section to AVProgram
ulmus-scott Aug 9, 2024
fe33d35
add avprogram_id to streams_changed() callback
ulmus-scott Aug 10, 2024
3e50172
mpegts-mythtv.c: remove is_pmt_equal()
ulmus-scott Aug 10, 2024
b246208
mpegts-mythtv.c: remove customization to add_pes_stream()
ulmus-scott Aug 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions mythtv/external/FFmpeg/libavformat/avformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,12 @@ typedef struct AVProgram {
int pcr_pid;
int pmt_version;

/**
* A reference-counted buffer holding the last seen PMT in an MPEG-TS.
* Only set by mpegts-mythtv.
*/
AVBufferRef *pmt_section;

/*****************************************************************
* All fields below this line are not part of the public API. They
* may not be used outside of libavformat and can be changed and
Expand Down Expand Up @@ -1334,14 +1340,8 @@ typedef struct AVFormatContext {

/* Myth addons */
/* mpeg-ts support */
void (*streams_changed)(void*);
void (*streams_changed)(void* stream_change_data, int avprogram_id);
void *stream_change_data;

/**
* A reference-counted buffer holding the last seen PMT in an MPEG-TS.
* Only set by mpegts-mythtv.
*/
AVBufferRef *pmt_section;
/* End Myth addons */

/**
Expand Down
2 changes: 1 addition & 1 deletion mythtv/external/FFmpeg/libavformat/mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static int mpegps_read_packet(AVFormatContext *s,

/* notify the callback of the change in streams */
if (s->streams_changed) {
s->streams_changed(s->stream_change_data);
s->streams_changed(s->stream_change_data, -1);
}

found:
Expand Down
Loading
Loading