Have mythtranscode report aac_latm
Fix h.264 frame/keyframe identification in the player.

If a NAL unit that determines a frame start appears as the last NAL
unit in the packet, then the frame start is not identified until the
start of the next packet.  If this new packet has its own NAL unit
that determines a frame start, and that NAL unit is not at the end of
the packet, then only one frame start would be counted rather than
two.  This is fixed by returning the total number of frame starts,
rather than a bool.

In theory, the same problem could exist in the recorder, but it
appears that the packets in the original recording may have some
trailing NAL units that are stripped by the ffmpeg libraries when
assembling the packet for the player, causing the situation not to
occur.
(cherry picked from commit 86c22ed3d5c522bcecb88ecacd58104fc0dd6d8d)
Bump binary version after cherry picking 86c22ed3d5c522bcecb88ecacd58104fc0dd6d8d
MythArchive: update the encoding profiles to work with the current mythffmpeg

Refs #11299.

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>

(cherry picked from 5a0e83a20e8f75612b86fb56039b7803a11afd1b)
MythArchive: update mythburn.py to work with the updated encoding profiles

Refs #11299.

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>

(cherry picked from a784b93f1d1c6edbc0b47ac578def5d3275171a8)
MythArchive: update mythburn.py to work with the new mpeg2video codec name

Refs #11299.

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>

(cherry picked from 13c3035d1fed13a37c42d872b1f8dafb2e6f556f)
Make comparisons consistent

Refs #11299
Add AAC and AAC_LATM tages to mythtranscode info output

Pull request: https://github.com/MythTV/mythtv/pull/33
Merge remote-tracking branch 'glidos/fixes/0.26' into fixes/0.26

Refs #11380 and e78e59c6b2d71631e18027b9b9c84212744472bf

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
fix issue #10222: mythcommflag segfaulting

The problem in issue #10222 is that it is adding the CODEC_FLAG2_FAST flag.  This causes unsafe functions to be used, causing a segfault. The proper way to fix this would probably be to figure out how to test for the "experimental speedups" flag, however I don't know the codebase well enough for this.

I tested how this would affect the speed of mythcommflag on one of my recordings.  The results:

Before removing flag:
real 2m13.123s
user 2m16.713s
sys 0m3.502s

After removing flag:
real 2m13.021s
user 2m15.446s
sys 0m3.758s

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
(cherry-picked from 0026dda883ef50ab7f2fda7f2d2218bc56f094a7)
SignalMonitor: Timeout if we don't get a lock in a reasonable amount of time.
(cherry picked from commit 6bae400b0bbeb539e6e9390517e1a90f8f6f13d4)
DTVRecorder: buffer up each payload until we know if the payload is a
keyframe.

Especially with H.264, we can be several packets into a payload before we
know if it is a keyframe or just a frame or something else.  Always buffer
the packets of a payload until we know what we are doing with the payload.

If we need to switch ringbuffers, we now do it so the new file will start at
the beginning of the payload holding a keyframe.  Each file will also start
with a PAT/PMT if the "recorder" calls for it.
(cherry picked from commit 87a15e1ce40d81058ff221308d666d73b1517ff2)

Conflicts:
	mythtv/libs/libmythtv/dtvrecorder.cpp
	mythtv/libs/libmythtv/recorders/iptvrecorder.cpp
	mythtv/libs/libmythtv/recorders/iptvrecorder.h
Cleanup some useless "discontinuity detected" messages following 87a15e1ce

Closes #11328
(cherry picked from commit efc1e46a8a2d913a8070483178ca46293f0a4423)
dtvrecorder: Don't try to buffer frames for audio-only streams.
(cherry picked from commit 0d9312df1dd3ed2a2da40edce1bbaae5b90c9944)

Fixes #11442
Fix missing copyrightlogo widget in Terra. No-one noticed mythweather was broken with Terra for over 6 months ...
(cherry picked from commit 23c0f7435df1cf8f146459b18a45955fc32da3b6)
Apply the pixel aspect ratio, if available, to aspect ratio calculation.

This only applies to mpeg2 video. Refs #11406.
Sync libdvdread to R1250:

* Accommodate duplicate language units and pgcs (avoid potentially consuming large amounts of memory)
* Fix a segmentation fault by preventing a read/write beyond end of an array due to using a length value taken from the DVD, which can exceed the allocated size.

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 15a062f5ef22be1f8eefa9e8d300d18f8a54996b)
Sync libdvdnav up to R1251.

* Fix failed assertion when there's no menu.
* Make sure we get nav packets for all cells in multi angle features
* Fix strict aliasing warnings.

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
Eliminate the segfault reported in tickets #10924, #11043, #11378.

Change the parent of the polling socket from the LoggerThread to the
polling context.  As a result, the polling socket is not deleted when the
LoggerThread is deleted and the destroyed signal is never triggered preventing
the call to disconnect() the deleted polling socket from the polling context.