Michael Niedermayer
5d0dfdadb0
Revert "avformat/mpegts: update stream info when PMT ES stream_type changes"
...
This fixes mixing up contexts, use of uninitialized data and crashes.
More specifically:
==1001752== Conditional jump or move depends on uninitialised value(s)
==1001752== at 0xA9ED82: avpriv_h264_has_num_reorder_frames (h264dec.c:64)
==1001752== by 0x668C7E: has_decode_delay_been_guessed (demux.c:757)
==1001752== by 0x66AB13: compute_pkt_fields (demux.c:1137)
==1001752== by 0x66B2E9: parse_packet (demux.c:1265)
==1001752== by 0x66BD84: read_frame_internal (demux.c:1449)
==1001752== by 0x67085B: avformat_find_stream_info (demux.c:2692)
==1001752== by 0x25157C: ifile_open (ffmpeg_demux.c:1814)
==1001752== by 0x272B15: open_files (ffmpeg_opt.c:1366)
==1001752== by 0x272D85: ffmpeg_parse_options (ffmpeg_opt.c:1415)
==1001752== by 0x2925C9: main (ffmpeg.c:991)
==1001752== Uninitialised value was created by a heap allocation
==1001752== at 0x483E0F0: memalign (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1001752== by 0x483E212: posix_memalign (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1001752== by 0x14882CE: av_malloc (mem.c:107)
==1001752== by 0x1463785: av_buffer_alloc (buffer.c:82)
==1001752== by 0x146423F: pool_alloc_buffer (buffer.c:369)
==1001752== by 0x14643C4: av_buffer_pool_get (buffer.c:407)
==1001752== by 0x752C4B: buffer_pool_get (mpegts.c:1142)
==1001752== by 0x7538F2: mpegts_push_data (mpegts.c:1407)
==1001752== by 0x758893: handle_packet (mpegts.c:2909)
==1001752== by 0x758E90: handle_packets (mpegts.c:3048)
==1001752== by 0x759B1D: mpegts_read_packet (mpegts.c:3290)
==1001752== by 0x6687A3: ff_read_packet (demux.c:649)
==1001752== by 0x66B594: read_frame_internal (demux.c:1346)
==1001752== by 0x67085B: avformat_find_stream_info (demux.c:2692)
==1001752== by 0x25157C: ifile_open (ffmpeg_demux.c:1814)
==1001752== by 0x272B15: open_files (ffmpeg_opt.c:1366)
==1001752== by 0x272D85: ffmpeg_parse_options (ffmpeg_opt.c:1415)
==1001752== by 0x2925C9: main (ffmpeg.c:991)
Found-by: Alexander A. Shvedov <shvedov@gmx.com >
CC: Pavel Koshevoy <pkoshevoy@gmail.com >
This reverts commit 0021484d05 .
2025-06-11 12:15:25 +02:00
..
2023-08-10 23:56:35 +02:00
2023-05-02 10:59:24 +02:00
2023-06-05 16:15:04 +02:00
2022-09-19 17:05:33 +02:00
2022-09-19 17:05:33 +02:00
2023-10-06 10:11:19 -03:00
2023-09-08 09:42:25 -03:00
2023-10-25 21:55:01 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-01 19:41:12 -03:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-09 16:56:58 -04:00
2023-07-07 11:56:37 -03:00
2023-07-07 11:56:37 -03:00
2023-07-07 11:56:37 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-07-07 11:56:37 -03:00
2023-06-30 08:26:38 -03:00
2023-07-07 11:56:37 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-06-30 08:26:38 -03:00
2023-10-27 08:46:34 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2022-11-06 14:39:27 +01:00
2022-11-06 14:39:27 +01:00
2023-10-06 10:11:19 -03:00
2023-05-02 10:59:24 +02:00
2023-05-02 10:59:24 +02:00
2023-04-28 14:31:55 +02:00
2023-04-28 14:31:55 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-09-06 14:37:15 -03:00
2023-09-04 14:02:40 +08:00
2023-09-05 15:01:34 +08:00
2023-03-26 16:39:59 -03:00
2023-03-26 16:39:59 -03:00
2023-03-26 16:39:59 -03:00
2023-03-26 16:39:59 -03:00
2023-06-05 16:15:04 +02:00
2023-06-05 16:15:04 +02:00
2023-04-19 21:12:03 +02:00
2023-02-03 16:17:29 +02:00
2023-05-22 17:10:44 +02:00
2023-06-19 09:48:55 +02:00
2023-06-21 10:07:41 +02:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-06-05 16:15:04 +02:00
2023-03-25 02:38:17 +01:00
2023-03-25 02:38:17 +01:00
2023-03-25 02:38:17 +01:00
2023-06-05 16:15:04 +02:00
2022-11-06 14:39:33 +01:00
2023-10-06 00:17:02 +02:00
2023-10-06 00:17:02 +02:00
2023-10-06 00:17:02 +02:00
2023-07-20 16:49:20 +02:00
2023-01-03 17:18:55 +01:00
2023-01-03 17:18:55 +01:00
2023-01-03 17:18:55 +01:00
2023-01-03 17:18:55 +01:00
2023-01-03 17:18:55 +01:00
2023-01-03 17:18:55 +01:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2022-09-10 12:29:12 -07:00
2022-09-10 12:29:12 -07:00
2023-05-29 00:41:35 +02:00
2023-05-29 00:41:35 +02:00
2023-05-29 00:41:35 +02:00
2023-05-29 00:41:35 +02:00
2022-09-10 12:29:12 -07:00
2022-09-10 12:29:12 -07:00
2022-09-10 12:29:12 -07:00
2022-09-10 12:29:12 -07:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2022-12-20 14:02:37 +01:00
2023-09-28 19:37:58 +02:00
2023-09-28 19:37:58 +02:00
2023-03-16 16:07:40 -03:00
2023-03-06 21:41:24 +01:00
2023-03-06 21:41:24 +01:00
2023-07-20 20:30:13 +02:00
2023-07-20 20:30:13 +02:00
2023-03-20 10:42:09 +01:00
2023-10-25 21:55:01 -03:00
2023-10-10 12:41:31 +02:00
2023-10-10 12:41:31 +02:00
2023-10-10 12:41:31 +02:00
2023-10-25 21:55:01 -03:00
2023-10-06 00:17:02 +02:00
2023-10-06 00:17:02 +02:00
2023-10-06 00:17:02 +02:00
2023-10-06 00:17:02 +02:00
2023-05-25 19:51:56 +02:00
2023-04-24 16:56:06 +02:00
2023-06-05 16:15:04 +02:00
2022-09-25 14:56:08 +02:00
2023-04-13 15:34:07 +02:00
2022-09-25 14:56:08 +02:00
2022-09-25 14:56:08 +02:00
2023-04-13 15:34:07 +02:00
2023-04-22 11:20:58 -03:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-03-26 16:39:59 -03:00
2023-04-13 15:34:07 +02:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2022-12-01 11:00:41 +01:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-04-13 15:34:07 +02:00
2023-10-06 10:11:18 -03:00
2023-07-27 21:45:43 +03:00
2023-07-27 21:45:43 +03:00
2023-04-13 15:34:07 +02:00
2022-09-12 22:26:27 +02:00
2023-10-03 16:57:02 +02:00
2023-05-11 09:04:44 -07:00
2023-02-18 14:41:20 -08:00
2023-09-28 20:07:48 +02:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-04-22 15:57:41 -07:00
2023-03-26 16:39:59 -03:00
2023-05-17 12:37:42 +02:00
2023-05-17 12:37:42 +02:00
2023-05-17 12:37:42 +02:00
2023-05-17 12:37:42 +02:00
2023-05-17 12:37:42 +02:00
2023-04-21 09:55:12 -04:00
2023-04-21 09:55:12 -04:00
2023-04-21 09:55:12 -04:00
2023-09-01 03:36:02 -04:00
2023-09-01 03:36:02 -04:00
2023-09-01 03:36:02 -04:00
2023-09-01 03:36:02 -04:00
2023-05-15 10:39:02 +02:00
2023-08-28 01:10:14 +02:00
2023-09-06 11:59:20 +02:00
2023-09-04 19:29:21 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-25 21:55:01 -03:00
2023-10-06 10:11:19 -03:00
2023-10-06 10:11:19 -03:00
2023-10-06 10:11:19 -03:00
2023-08-10 23:56:35 +02:00
2023-10-06 10:11:19 -03:00
2023-08-10 23:56:35 +02:00
2023-10-02 12:22:05 +02:00
2023-08-10 23:56:35 +02:00
2023-10-06 10:11:19 -03:00
2023-08-10 23:56:35 +02:00
2023-10-25 21:55:01 -03:00
2023-08-10 23:56:35 +02:00
2023-09-07 00:28:27 +02:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-10-06 10:11:19 -03:00
2023-10-06 10:11:19 -03:00
2023-10-25 21:55:01 -03:00
2023-08-10 23:56:35 +02:00
2023-10-20 18:42:01 +02:00
2023-02-09 12:45:53 +01:00
2023-02-14 21:10:42 +02:00
2023-10-25 21:55:01 -03:00
2023-02-09 12:45:53 +01:00
2023-03-15 00:12:59 +08:00
2023-03-15 00:12:59 +08:00
2023-07-28 15:31:56 +03:00
2023-07-28 15:31:56 +03:00
2023-10-25 21:55:01 -03:00
2023-10-03 16:57:02 +02:00
2022-11-07 16:08:35 +11:00
2023-10-06 10:11:19 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-06 10:11:19 -03:00
2023-01-10 11:49:28 +01:00
2023-10-25 21:55:01 -03:00
2023-05-02 10:59:24 +02:00
2022-09-17 15:11:13 -07:00
2023-03-26 16:39:59 -03:00
2023-04-21 14:06:37 +08:00
2023-03-26 16:39:59 -03:00
2022-11-06 14:39:33 +01:00
2023-04-24 16:56:06 +02:00
2023-08-10 23:56:35 +02:00
2022-10-02 20:27:36 +02:00
2022-09-20 18:32:28 +02:00
2022-09-20 18:32:28 +02:00
2022-09-20 18:32:28 +02:00
2022-09-20 18:32:28 +02:00
2023-01-16 15:37:59 +05:30
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2022-10-05 14:38:51 +02:00
2023-04-09 15:47:45 +02:00
2023-08-10 23:56:35 +02:00
2024-02-18 14:13:39 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2023-01-13 11:22:59 -06:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2023-08-30 11:53:50 +02:00
2023-08-30 11:53:50 +02:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-09-12 22:26:27 +02:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-12-03 19:08:44 +01:00
2022-11-01 09:24:29 +11:00
2023-09-28 20:07:48 +02:00
2022-11-16 08:41:14 +01:00
2022-11-16 08:41:14 +01:00
2022-11-16 08:41:14 +01:00
2022-11-16 08:41:14 +01:00
2022-11-16 08:41:14 +01:00
2022-11-16 08:41:14 +01:00
2025-06-11 12:15:25 +02:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-10-25 21:55:01 -03:00
2023-04-19 21:12:03 +02:00
2022-11-06 14:39:27 +01:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-06 10:11:19 -03:00
2022-11-07 16:08:35 +11:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-08-10 23:56:35 +02:00
2023-10-25 21:55:01 -03:00
2023-10-03 16:57:02 +02:00
2023-10-03 16:57:02 +02:00
2023-10-18 23:01:51 +08:00