#10883(avformat:new): first 5 bytes of all KLV data is dropped
#10883: first 5 bytes of all KLV data is dropped ----------------------------------+---------------------------------- Reporter: tmc2001 | Type: defect Status: new | Priority: normal Component: avformat | Version: 6.1 Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------- This is a regression from 6.0 to 6.1, introduced by changeset: https://github.com/FFmpeg/FFmpeg/commit/468615f2045da325e0f73e8e668d49cf456c... This change causes the first 5 bytes of all KLV data to be dropped, which is incorrect. I am not sure on the history of why the 5 byte skip is needed, but, if that skip is needed, might I at least recommend to change it to: if (pes->stream_type == 0x15 && pes->st->codecpar->codec_id == AV_CODEC_ID_SMPTE_KLV && buf_size >= 5) Thank you. -- Ticket URL: <https://trac.ffmpeg.org/ticket/10883> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10883: first 5 bytes of all MPEGTS KLV data is dropped ---------------------------------+------------------------------------ Reporter: tmc2001 | Owner: (none) Type: defect | Status: new Priority: normal | Component: avformat Version: 6.1 | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ---------------------------------+------------------------------------ Changes (by tmc2001): * summary: first 5 bytes of all KLV data is dropped => first 5 bytes of all MPEGTS KLV data is dropped Old description:
This is a regression from 6.0 to 6.1, introduced by changeset: https://github.com/FFmpeg/FFmpeg/commit/468615f2045da325e0f73e8e668d49cf456c...
This change causes the first 5 bytes of all KLV data to be dropped, which is incorrect.
I am not sure on the history of why the 5 byte skip is needed, but, if that skip is needed, might I at least recommend to change it to:
if (pes->stream_type == 0x15 && pes->st->codecpar->codec_id == AV_CODEC_ID_SMPTE_KLV && buf_size >= 5)
Thank you.
New description: This is a regression from 6.0 to 6.1, introduced by changeset: https://github.com/FFmpeg/FFmpeg/commit/468615f2045da325e0f73e8e668d49cf456c... This change causes the first 5 bytes of all MPEGTS KLV data to be dropped, which is incorrect. I am not sure on the history of why the 5 byte skip is needed, but, if that skip is needed, might I at least recommend to change it to: if (pes->stream_type == 0x15 && pes->st->codecpar->codec_id == AV_CODEC_ID_SMPTE_KLV && buf_size >= 5) Thank you. -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/10883#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10883: first 5 bytes of all MPEGTS KLV data is dropped ---------------------------------+------------------------------------ Reporter: tmc2001 | Owner: (none) Type: defect | Status: new Priority: normal | Component: avformat Version: 6.1 | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ---------------------------------+------------------------------------ Comment (by Balling): hi. I suppose you do not understand that when there is [1] in the commit message that means that there was supposed to be a cite. But there was not. So look up the source patch: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230620050932.85936-1-too... and it has all the info about stuff To test: 1. download this file: https://www.dropbox.com/s/jy8sih3pe8qskxb/bla.ts?dl=1 This file was download from: http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8 2. run this command: ffprobe -show_streams -select_streams 0 -show_packets -show_private_data \ -show_data /path/to/bla.ts {{{ Before: [PACKET] codec_type=data stream_index=0 pts=494646418 pts_time=5496.071311 dts=494646418 dts_time=5496.071311 duration=N/A duration_time=N/A size=21 pos=482784 flags=K__ data= 00000000: 0000 0000 1054 4954 3200 0000 0600 0003 .....TIT2....... 00000010: 7465 7374 00 test. After: [PACKET] codec_type=data stream_index=0 pts=494646418 pts_time=5496.071311 dts=494646418 dts_time=5496.071311 duration=N/A duration_time=N/A size=26 pos=482784 flags=K__ data= 00000000: 4944 3304 0000 0000 0010 5449 5432 0000 ID3.......TIT2.. 00000010: 0006 0000 0374 6573 7400 .....test. }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/10883#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10883: first 5 bytes of all MPEGTS KLV data is dropped -------------------------------------+------------------------------------- Reporter: tmc2001 | Owner: (none) Type: defect | Status: open Priority: important | Component: avformat Version: 6.1 | Resolution: Keywords: regression | Blocked By: mpegts klv | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Marton Balint): * cc: Marton Balint (added) * keywords: => regression mpegts klv * status: new => open * priority: normal => important Comment: Just sent a patch to fix this. https://patchwork.ffmpeg.org/project/ffmpeg/patch/20240229231812.13981-1-cus... -- Ticket URL: <https://trac.ffmpeg.org/ticket/10883#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10883: first 5 bytes of all MPEGTS KLV data is dropped -------------------------------------+------------------------------------- Reporter: tmc2001 | Owner: (none) Type: defect | Status: closed Priority: important | Component: avformat Version: 6.1 | Resolution: fixed Keywords: regression | Blocked By: mpegts klv | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Marton Balint): * status: open => closed * resolution: => fixed Comment: Fixed in Fixed in 0aaee4741ce0c10ca09f5d17194b58d0cf0ebece. -- Ticket URL: <https://trac.ffmpeg.org/ticket/10883#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg