• Marton Balint's avatar
    avformat/mpegts: respect program number when merging streams · 81d3d7dd
    Marton Balint authored
    merge_pmt_versions was not usable if multiple programs were present because
    when it was searching for candidate streams it did not make sure that the PMT was
    of the same program. This caused the streams of all programs to get merged into
    a single (garbled) program.
    
    This patch makes sure that the program number (service ID) is also matching
    with the old streams when parsing the PMT making the feature useful for multi
    program streams.
    
    This change might cause issues for single program streams if the program number
    changes, but I think it is acceptable because the goal of the option is to make
    the parsing resilient to PID changes, and that is still working as expected.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    81d3d7dd
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...