aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h265.c
AgeCommit message (Collapse)AuthorFilesLines
2020-06-12RTP: Make Decode As handling consistent across subdissectorsJohn Thacker1-19/+7
RTP has two dissector tables, one directly associated with payload types, and one which is associated with strings that appear in SDP commands. This makes all dissectors that are registered as a dynamic payload type that can be configured by SDP appear as a Decode As option for the RTP PT table. Some protocols were registered in the table for configuration by SDP but had no way to register with the rtp.pt table. These include EVRC, H.223, and v150fw. Other protocols had a long standing preference to set a dynamic payload type, but they still did not appear in the Decode As menu unless that preference was changed from the default, largely because of the way that the preference was not actually registered with the rtp.pt table unless it had a value in the dynamic payload type range. These include EVS, H.263P, H.264, H.265, ISMACryp, IuUP, LAPD, MP4V-ES, RTP-MIDI, and VP8. RFC 3551 says that not just the dynamic payload types, but also the unassigned and even the statically assigned payload types MAY be dynamically reassigned as necessary, so this patch also allows these preferences to be set for payload types less than 96. The only payload type not allowed is 0 (which RFCs 3551 and 7007 say must be μ-law PCM), which is handy anyone for backwards compatibility with preferences that used to be uints (where 0 meant disabled.) All protcols which formerly used a uint preference are all converted to a range preference, and the text is changed to be similar for each. This works in a backwards compatible fashion, and any defaults are maintained. The patch also adds some of the dissector variants as PINOs so that they will show up with distinct names in the Decode As menus, and changes some of the protocol short names so that the entry in Decode As is clearer and matches what is used for other similar protocols. Change-Id: I68627b5c3e495d9fc813d88208f3b62e47e0c4de Reviewed-on: https://code.wireshark.org/review/37396 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-12-15H265: properly index 2D array (CID 1450950)Jaap Keuter1-6/+6
In the expression it seems to simply have been missed this is a 2D array. Adding the 2nd index, as elsewhere in this function. Change-Id: I21ce5a6fa70408f84cb61bbd09e7d3aeff9c1d85 Reviewed-on: https://code.wireshark.org/review/35441 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-10H265: Fix -Wpointer-sign warnings.Anders Broman1-12/+15
Change-Id: I7398216fcd03c619fe51182b5335ea47dd3fa110 Reviewed-on: https://code.wireshark.org/review/33888 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-04H.265: Small parsing fixesKave, Asaf1-6/+12
- h265_vps_reserved_0xffff_16bits parsing - general_profile_compatibility_flag matrix parsing. Change-Id: I1be4e4520571801a350913a820e4bc306c6f3158 Reviewed-on: https://code.wireshark.org/review/32299 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot
2019-02-25H265: Check range of H265_MAX_NUM_SHORT_TERM_REF_PIC_SETSAnders Broman1-2/+12
Check that value read from tvb is within protocol specified value. Bug: 15531 Change-Id: Icbfebef380aeb00f0d47a377a3bf3764f9cb1de0 Reviewed-on: https://code.wireshark.org/review/32189 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-08-20h265: fix no newline at end of file [-Wnewline-eof]Alexis La Goutte1-1/+1
Change-Id: I05ecc82f939e140fd6b4304b19bc0d6a301b0be9 Reviewed-on: https://code.wireshark.org/review/29190 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-08-14H.265: Fix incompatible use of proto_tree_add_bits_ret_val with field ↵Asaf Kave1-3/+1
'h265.reserved_zero_2bits' Change-Id: Ic4c9c8fd7676e9eada3ace59f5eb81b6fa339adc Reviewed-on: https://code.wireshark.org/review/29141 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-07-18H.265: Parsing media format specific parameter from SDP.Asaf Kave1-1/+62
Change-Id: I2607068671f370517b1f0a2f65f47a221b630d91 Reviewed-on: https://code.wireshark.org/review/28725 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-07-08H.265: implement Level bit rates, few general fixes.Asaf Kave1-18/+33
Fix wrong proto_tree_add_bits_item length, types for exp_golomb, sps_extension_4bits instead sps_scc_extension_flag. Remove useless bit_offset assignment which, triggered a Clang warning. Change-Id: Ibd6e5e9144df1feadbabbfe8498d33e4882f947f Reviewed-on: https://code.wireshark.org/review/28609 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-07-03Fix various compile warnings.Guy Harris1-5/+8
Use h265_profile_idc_values as the value_string for h265.general_profile_idc. Get rid of a duplicate value - 2 is used for both "Main 10" and "Main 10 Still" profiles, a *separate* part of the packet indicates whether it's the still picture version or not. "#if 0" out h265_level_bitrate_values - it's not clear where it should be used. Initialize two-dimensional arrays with { { 0 } }, i.e. an array of arrays, with the first element of the first array explicitly initialized to zero, and all the other elements of all the other arrays implicitly initialized to zero. Change-Id: Ia2ddc28528dcc49fa7a69685b7e5d08d2cd6b4e7 Reviewed-on: https://code.wireshark.org/review/28574 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-07-03Add first time H.265 based on the H.264 dissector.Asaf Kave1-0/+4560
Change-Id: I5b101d6713157a53d1d330e1bd2c70f7b7a247e1 Reviewed-on: https://code.wireshark.org/review/28426 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>