Right now those muxers use the default timebase in all cases(1/90000).
This patch avoid unnecessary rescaling and makes the printed timestamps
more readable.
Also, extend the printed information to include the timebases and packet
pts/duration.
Obviously changes the results of all fate tests which use those two
muxers.
---
After a discussion on IRC extended the patch to also print the timebases
and packet pts and duration.
---
libavformat/Makefile | 4 +-
libavformat/framecrcenc.c | 5 +-
libavformat/framehash.c | 32 +
libavformat/internal.h | 6 +
libavformat/md5enc.c | 5 +-
tests/ref/fate/4xm-1 | 31 +-
tests/ref/fate/4xm-2 | 349 +-
tests/ref/fate/8bps | 72 +-
tests/ref/fate/aasc | 47 +-
tests/ref/fate/adpcm-ea-mad-ea-r1 | 384 ++--
tests/ref/fate/adpcm-ea-tqi | 104 +-
tests/ref/fate/adpcm-psx-str-v3 | 75 +-
tests/ref/fate/adpcm-thp | 288 +-
tests/ref/fate/alg-mm | 63 +-
tests/ref/fate/amv | 642 ++--
tests/ref/fate/ansi | 35 +-
tests/ref/fate/armovie-escape124 | 210 +-
tests/ref/fate/auravision-v1 | 49 +-
tests/ref/fate/auravision-v2 | 5 +-
tests/ref/fate/bethsoft-vid | 284 +-
tests/ref/fate/bfi | 230 +-
tests/ref/fate/bink-video | 41 +-
tests/ref/fate/bmv | 86 +-
tests/ref/fate/cdgraphics | 601 ++--
tests/ref/fate/cljr | 73 +-
tests/ref/fate/corepng | 76 +-
tests/ref/fate/creatureshock-avs | 186 +-
tests/ref/fate/cscd | 417 ++--
tests/ref/fate/cvid-grayscale | 305 +-
tests/ref/fate/cvid-palette | 113 +-
tests/ref/fate/cvid-partial | 157 +-
tests/ref/fate/cyberia-c93 | 86 +-
tests/ref/fate/cyuv | 301 +-
tests/ref/fate/d-cinema-demux | 9 +-
tests/ref/fate/delphine-cin | 368 ++--
tests/ref/fate/deluxepaint-anm | 247 +-
tests/ref/fate/dfa1 | 51 +-
tests/ref/fate/dfa10 | 17 +-
tests/ref/fate/dfa11 | 19 +-
tests/ref/fate/dfa2 | 35 +-
tests/ref/fate/dfa3 | 21 +-
tests/ref/fate/dfa4 | 27 +-
tests/ref/fate/dfa5 | 31 +-
tests/ref/fate/dfa6 | 25 +-
tests/ref/fate/dfa7 | 25 +-
tests/ref/fate/dfa8 | 73 +-
tests/ref/fate/dfa9 | 13 +-
tests/ref/fate/dpcm-idroq | 756 +++---
tests/ref/fate/dpx | 3 +-
tests/ref/fate/dxa-feeble | 130 +-
tests/ref/fate/dxa-scummvm | 25 +-
tests/ref/fate/dxtory | 4 +-
tests/ref/fate/ea-cmv | 389 ++--
tests/ref/fate/ea-dct | 536 ++--
tests/ref/fate/ea-mad-pcm-planar | 586 ++--
tests/ref/fate/ea-tgq | 557 ++--
tests/ref/fate/ea-tgv-ima-ea-eacs | 190 +-
tests/ref/fate/ea-tgv-ima-ea-sead | 176 +-
tests/ref/fate/ea-vp60 | 267 +-
tests/ref/fate/ea-vp61 | 241 +-
tests/ref/fate/film-cvid-pcm-stereo-8bit | 280 +-
tests/ref/fate/flic-af11-palette-change | 233 +-
tests/ref/fate/flic-af12 | 55 +-
tests/ref/fate/flic-magiccarpet | 85 +-
tests/ref/fate/fraps-v0 | 41 +-
tests/ref/fate/fraps-v1 | 3 +-
tests/ref/fate/fraps-v2 | 21 +-
tests/ref/fate/fraps-v3 | 19 +-
tests/ref/fate/fraps-v4 | 15 +-
tests/ref/fate/fraps-v5 | 117 +-
tests/ref/fate/frwu | 21 +-
tests/ref/fate/g722dec-1 | 335 +-
tests/ref/fate/gsm-ms | 179 +-
tests/ref/fate/gsm-toast | 1001 +++---
tests/ref/fate/h264-conformance-aud_mw_e | 201 +-
tests/ref/fate/h264-conformance-ba1_ft_c | 599 ++--
tests/ref/fate/h264-conformance-ba1_sony_d | 35 +-
tests/ref/fate/h264-conformance-ba2_sony_f | 601 ++--
tests/ref/fate/h264-conformance-ba3_sva_c | 67 +-
tests/ref/fate/h264-conformance-ba_mw_d | 201 +-
tests/ref/fate/h264-conformance-bamq1_jvc_c | 61 +-
tests/ref/fate/h264-conformance-bamq2_jvc_c | 61 +-
tests/ref/fate/h264-conformance-banm_mw_d | 201 +-
tests/ref/fate/h264-conformance-basqp1_sony_c | 9 +-
tests/ref/fate/h264-conformance-caba1_sony_d | 101 +-
tests/ref/fate/h264-conformance-caba1_sva_b | 35 +-
tests/ref/fate/h264-conformance-caba2_sony_e | 601 ++--
tests/ref/fate/h264-conformance-caba2_sva_b | 35 +-
tests/ref/fate/h264-conformance-caba3_sony_c | 601 ++--
tests/ref/fate/h264-conformance-caba3_sva_b | 67 +-
tests/ref/fate/h264-conformance-caba3_toshiba_e | 601 ++--
.../ref/fate/h264-conformance-cabac_mot_fld0_full | 61 +-
.../ref/fate/h264-conformance-cabac_mot_frm0_full | 61 +-
.../fate/h264-conformance-cabac_mot_mbaff0_full | 61 +-
.../fate/h264-conformance-cabac_mot_picaff0_full | 61 +-
tests/ref/fate/h264-conformance-cabaci3_sony_b | 601 ++--
tests/ref/fate/h264-conformance-cabast3_sony_e | 51 +-
tests/ref/fate/h264-conformance-cabastbr3_sony_b | 51 +-
tests/ref/fate/h264-conformance-cabref3_sand_d | 101 +-
tests/ref/fate/h264-conformance-cacqp3_sony_d | 101 +-
tests/ref/fate/h264-conformance-cafi1_sva_c | 67 +-
tests/ref/fate/h264-conformance-cama1_sony_c | 11 +-
tests/ref/fate/h264-conformance-cama1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-cama1_vtc_c | 9 +-
tests/ref/fate/h264-conformance-cama2_vtc_b | 9 +-
tests/ref/fate/h264-conformance-cama3_sand_e | 101 +-
tests/ref/fate/h264-conformance-cama3_vtc_b | 9 +-
tests/ref/fate/h264-conformance-camaci3_sony_c | 35 +-
tests/ref/fate/h264-conformance-camanl1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-camanl2_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-camanl3_sand_e | 101 +-
tests/ref/fate/h264-conformance-camasl3_sony_b | 35 +-
tests/ref/fate/h264-conformance-camp_mot_mbaff_l30 | 61 +-
tests/ref/fate/h264-conformance-camp_mot_mbaff_l31 | 61 +-
tests/ref/fate/h264-conformance-canl1_sony_e | 101 +-
tests/ref/fate/h264-conformance-canl1_sva_b | 35 +-
tests/ref/fate/h264-conformance-canl1_toshiba_g | 601 ++--
tests/ref/fate/h264-conformance-canl2_sony_e | 601 ++--
tests/ref/fate/h264-conformance-canl2_sva_b | 35 +-
tests/ref/fate/h264-conformance-canl3_sony_c | 601 ++--
tests/ref/fate/h264-conformance-canl3_sva_b | 35 +-
tests/ref/fate/h264-conformance-canl4_sva_b | 67 +-
tests/ref/fate/h264-conformance-canlma2_sony_c | 35 +-
tests/ref/fate/h264-conformance-canlma3_sony_c | 35 +-
tests/ref/fate/h264-conformance-capa1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-capama3_sand_f | 101 +-
tests/ref/fate/h264-conformance-capcm1_sand_e | 61 +-
tests/ref/fate/h264-conformance-capcmnl1_sand_e | 61 +-
tests/ref/fate/h264-conformance-capm3_sony_d | 601 ++--
tests/ref/fate/h264-conformance-caqp1_sony_b | 101 +-
.../fate/h264-conformance-cavlc_mot_fld0_full_b | 61 +-
.../fate/h264-conformance-cavlc_mot_frm0_full_b | 61 +-
.../fate/h264-conformance-cavlc_mot_mbaff0_full_b | 61 +-
.../fate/h264-conformance-cavlc_mot_picaff0_full_b | 61 +-
tests/ref/fate/h264-conformance-cawp1_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-cawp5_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-ci1_ft_b | 583 ++--
tests/ref/fate/h264-conformance-ci_mw_d | 201 +-
tests/ref/fate/h264-conformance-cvbs3_sony_c | 601 ++--
tests/ref/fate/h264-conformance-cvcanlma2_sony_c | 35 +-
tests/ref/fate/h264-conformance-cvfi1_sony_d | 35 +-
tests/ref/fate/h264-conformance-cvfi1_sva_c | 15 +-
tests/ref/fate/h264-conformance-cvfi2_sony_h | 35 +-
tests/ref/fate/h264-conformance-cvfi2_sva_c | 27 +-
tests/ref/fate/h264-conformance-cvma1_sony_d | 11 +-
tests/ref/fate/h264-conformance-cvma1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-cvmanl1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-cvmanl2_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-cvmapaqp3_sony_e | 17 +-
tests/ref/fate/h264-conformance-cvmaqp2_sony_g | 35 +-
tests/ref/fate/h264-conformance-cvmaqp3_sony_d | 35 +-
tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b | 61 +-
tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b | 61 +-
tests/ref/fate/h264-conformance-cvnlfi1_sony_c | 35 +-
tests/ref/fate/h264-conformance-cvnlfi2_sony_h | 35 +-
tests/ref/fate/h264-conformance-cvpa1_toshiba_b | 181 +-
tests/ref/fate/h264-conformance-cvpcmnl1_sva_c | 61 +-
tests/ref/fate/h264-conformance-cvpcmnl2_sva_c | 5 +-
tests/ref/fate/h264-conformance-cvwp1_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-cvwp2_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-cvwp3_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-cvwp5_toshiba_e | 181 +-
tests/ref/fate/h264-conformance-fi1_sony_e | 35 +-
.../fate/h264-conformance-frext-alphaconformanceg | 87 +-
tests/ref/fate/h264-conformance-frext-bcrm_freh10 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh11 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh3 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh4 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh5 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh8 | 201 +-
tests/ref/fate/h264-conformance-frext-brcm_freh9 | 201 +-
tests/ref/fate/h264-conformance-frext-freh12_b | 201 +-
tests/ref/fate/h264-conformance-frext-freh1_b | 201 +-
tests/ref/fate/h264-conformance-frext-freh2_b | 201 +-
tests/ref/fate/h264-conformance-frext-freh6 | 201 +-
tests/ref/fate/h264-conformance-frext-freh7_b | 201 +-
.../ref/fate/h264-conformance-frext-frext01_jvc_d | 33 +-
.../ref/fate/h264-conformance-frext-frext02_jvc_c | 33 +-
.../fate/h264-conformance-frext-frext1_panasonic_c | 17 +-
.../fate/h264-conformance-frext-frext2_panasonic_b | 31 +-
.../fate/h264-conformance-frext-frext3_panasonic_d | 23 +-
.../fate/h264-conformance-frext-frext4_panasonic_a | 21 +-
.../fate/h264-conformance-frext-frext_mmco4_sony_b | 121 +-
tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b | 21 +-
tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c | 21 +-
tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a | 21 +-
tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a | 21 +-
tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a | 21 +-
.../ref/fate/h264-conformance-frext-hcamff1_hhi_b | 21 +-
tests/ref/fate/h264-conformance-frext-hpca_brcm_c | 601 ++--
.../ref/fate/h264-conformance-frext-hpcadq_brcm_b | 601 ++--
.../ref/fate/h264-conformance-frext-hpcafl_bcrm_c | 601 ++--
.../fate/h264-conformance-frext-hpcaflnl_bcrm_c | 601 ++--
.../ref/fate/h264-conformance-frext-hpcalq_brcm_b | 601 ++--
.../fate/h264-conformance-frext-hpcamapalq_bcrm_b | 601 ++--
.../fate/h264-conformance-frext-hpcamolq_brcm_b | 201 +-
.../ref/fate/h264-conformance-frext-hpcanl_brcm_c | 601 ++--
.../fate/h264-conformance-frext-hpcaq2lq_brcm_b | 201 +-
tests/ref/fate/h264-conformance-frext-hpcv_brcm_a | 601 ++--
.../ref/fate/h264-conformance-frext-hpcvfl_bcrm_a | 601 ++--
.../fate/h264-conformance-frext-hpcvflnl_bcrm_a | 601 ++--
.../fate/h264-conformance-frext-hpcvmolq_brcm_b | 201 +-
.../ref/fate/h264-conformance-frext-hpcvnl_brcm_a | 601 ++--
.../h264-conformance-frext-pph10i1_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i2_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i3_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i4_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i5_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i6_panasonic_a | 21 +-
.../h264-conformance-frext-pph10i7_panasonic_a | 21 +-
tests/ref/fate/h264-conformance-hcbp2_hhi_a | 501 ++--
tests/ref/fate/h264-conformance-hcmp1_hhi_a | 501 ++--
tests/ref/fate/h264-conformance-ls_sva_d | 3401 ++++++++++----------
tests/ref/fate/h264-conformance-midr_mw_d | 201 +-
tests/ref/fate/h264-conformance-mps_mw_a | 301 +-
tests/ref/fate/h264-conformance-mr1_bt_a | 125 +-
tests/ref/fate/h264-conformance-mr1_mw_a | 301 +-
tests/ref/fate/h264-conformance-mr2_mw_a | 601 ++--
tests/ref/fate/h264-conformance-mr2_tandberg_e | 601 ++--
tests/ref/fate/h264-conformance-mr3_tandberg_b | 601 ++--
tests/ref/fate/h264-conformance-mr4_tandberg_c | 601 ++--
tests/ref/fate/h264-conformance-mr5_tandberg_c | 601 ++--
tests/ref/fate/h264-conformance-mr6_bt_b | 121 +-
tests/ref/fate/h264-conformance-mr7_bt_b | 121 +-
tests/ref/fate/h264-conformance-mr8_bt_b | 117 +-
tests/ref/fate/h264-conformance-mr9_bt_b | 117 +-
tests/ref/fate/h264-conformance-mv1_brcm_d | 515 ++--
tests/ref/fate/h264-conformance-nl1_sony_d | 35 +-
tests/ref/fate/h264-conformance-nl2_sony_h | 601 ++--
tests/ref/fate/h264-conformance-nl3_sva_e | 67 +-
tests/ref/fate/h264-conformance-nlmq1_jvc_c | 61 +-
tests/ref/fate/h264-conformance-nlmq2_jvc_c | 61 +-
tests/ref/fate/h264-conformance-nrf_mw_e | 201 +-
tests/ref/fate/h264-conformance-sharp_mp_field_1_b | 31 +-
tests/ref/fate/h264-conformance-sharp_mp_field_2_b | 31 +-
tests/ref/fate/h264-conformance-sharp_mp_field_3_b | 31 +-
tests/ref/fate/h264-conformance-sharp_mp_paff_1r2 | 31 +-
tests/ref/fate/h264-conformance-sharp_mp_paff_2r | 31 +-
tests/ref/fate/h264-conformance-sl1_sva_b | 67 +-
tests/ref/fate/h264-conformance-sva_ba1_b | 35 +-
tests/ref/fate/h264-conformance-sva_ba2_d | 35 +-
tests/ref/fate/h264-conformance-sva_base_b | 35 +-
tests/ref/fate/h264-conformance-sva_cl1_e | 101 +-
tests/ref/fate/h264-conformance-sva_fm1_e | 35 +-
tests/ref/fate/h264-conformance-sva_nl1_b | 35 +-
tests/ref/fate/h264-conformance-sva_nl2_e | 35 +-
tests/ref/fate/h264-extreme-plane-pred | 201 +-
tests/ref/fate/h264-interlace-crop | 7 +-
tests/ref/fate/h264-lossless | 21 +-
tests/ref/fate/id-cin-video | 212 +-
tests/ref/fate/iff-byterun1 | 3 +-
tests/ref/fate/iff-ilbm | 3 +-
tests/ref/fate/indeo2 | 261 +-
tests/ref/fate/indeo3 | 81 +-
tests/ref/fate/indeo4 | 201 +-
tests/ref/fate/indeo5 | 269 +-
tests/ref/fate/interplay-mve-16bit | 260 +-
tests/ref/fate/interplay-mve-8bit | 470 ++--
tests/ref/fate/iv8-demux | 51 +-
tests/ref/fate/kmvc | 151 +-
tests/ref/fate/lmlm4-demux | 432 ++--
tests/ref/fate/loco-rgb | 11 +-
tests/ref/fate/loco-yuy2 | 7 +-
tests/ref/fate/mimic | 153 +-
tests/ref/fate/mjpegb | 21 +-
tests/ref/fate/motionpixels | 223 +-
tests/ref/fate/mpeg2-field-enc | 63 +-
tests/ref/fate/msmpeg4v1 | 101 +-
tests/ref/fate/msrle-8bit | 59 +-
tests/ref/fate/msvideo1-16bit | 61 +-
tests/ref/fate/msvideo1-8bit | 63 +-
tests/ref/fate/mszh | 3 +-
tests/ref/fate/mtv | 272 +-
tests/ref/fate/mxf-demux | 196 +-
tests/ref/fate/nc-demux | 183 +-
tests/ref/fate/nsv-demux | 344 +-
tests/ref/fate/nuv | 56 +-
tests/ref/fate/pcm_dvd | 247 +-
tests/ref/fate/pictor | 3 +-
tests/ref/fate/prores-422 | 5 +-
tests/ref/fate/prores-422_hq | 5 +-
tests/ref/fate/prores-422_lt | 5 +-
tests/ref/fate/prores-422_proxy | 5 +-
tests/ref/fate/prores-alpha | 5 +-
tests/ref/fate/psx-str | 402 ++--
tests/ref/fate/psx-str-v3-mdec | 119 +-
tests/ref/fate/ptx | 3 +-
tests/ref/fate/pva-demux | 52 +-
tests/ref/fate/qpeg | 201 +-
tests/ref/fate/qtrle-16bit | 167 +-
tests/ref/fate/qtrle-1bit | 216 +-
tests/ref/fate/qtrle-24bit | 69 +-
tests/ref/fate/qtrle-2bit | 216 +-
tests/ref/fate/qtrle-32bit | 53 +-
tests/ref/fate/qtrle-4bit | 77 +-
tests/ref/fate/qtrle-8bit | 335 +-
tests/ref/fate/quickdraw | 5 +-
tests/ref/fate/r210 | 7 +-
tests/ref/fate/real-rv40 | 481 ++--
tests/ref/fate/redcode-demux | 12 +-
tests/ref/fate/rl2 | 217 +-
tests/ref/fate/rpza | 61 +-
tests/ref/fate/rv30 | 219 +-
tests/ref/fate/sierra-vmd | 666 ++--
tests/ref/fate/siff | 80 +-
tests/ref/fate/smacker | 374 ++--
tests/ref/fate/smc | 241 +-
tests/ref/fate/smjpeg | 848 +++---
tests/ref/fate/sp5x | 40 +-
tests/ref/fate/sunraster-1bit-raw | 3 +-
tests/ref/fate/sunraster-1bit-rle | 3 +-
tests/ref/fate/sunraster-24bit-raw | 3 +-
tests/ref/fate/sunraster-24bit-rle | 3 +-
tests/ref/fate/sunraster-8bit-raw | 3 +-
tests/ref/fate/sunraster-8bit-rle | 3 +-
tests/ref/fate/svq1 | 301 +-
tests/ref/fate/svq3 | 361 ++--
tests/ref/fate/targa-conformance-CBW8 | 3 +-
tests/ref/fate/targa-conformance-CCM8 | 3 +-
tests/ref/fate/targa-conformance-CTC16 | 3 +-
tests/ref/fate/targa-conformance-CTC24 | 3 +-
tests/ref/fate/targa-conformance-CTC32 | 3 +-
tests/ref/fate/targa-conformance-UBW8 | 3 +-
tests/ref/fate/targa-conformance-UCM8 | 3 +-
tests/ref/fate/targa-conformance-UTC16 | 3 +-
tests/ref/fate/targa-conformance-UTC24 | 3 +-
tests/ref/fate/targa-conformance-UTC32 | 3 +-
tests/ref/fate/targa-top-to-bottom | 3 +-
tests/ref/fate/tiertex-seq | 198 +-
tests/ref/fate/tiff-fax-g3 | 3 +-
tests/ref/fate/tiff-fax-g3s | 3 +-
tests/ref/fate/tmv | 442 ++--
tests/ref/fate/truemotion1-15 | 438 ++--
tests/ref/fate/truemotion1-24 | 88 +-
tests/ref/fate/truemotion2 | 61 +-
tests/ref/fate/tscc-15bit | 482 ++--
tests/ref/fate/tscc-32bit | 313 +-
tests/ref/fate/txd-16bpp | 23 +-
tests/ref/fate/txd-pal8 | 3 +-
tests/ref/fate/ulti | 125 +-
tests/ref/fate/utvideo_rgb_left | 9 +-
tests/ref/fate/utvideo_rgb_median | 11 +-
tests/ref/fate/utvideo_rgba_left | 11 +-
tests/ref/fate/utvideo_rgba_median | 11 +-
tests/ref/fate/utvideo_yuv420_left | 15 +-
tests/ref/fate/utvideo_yuv420_median | 9 +-
tests/ref/fate/utvideo_yuv422_left | 9 +-
tests/ref/fate/utvideo_yuv422_median | 9 +-
tests/ref/fate/v210 | 3 +-
tests/ref/fate/v410dec | 3 +-
tests/ref/fate/vble | 9 +-
tests/ref/fate/vc1-ism | 241 +-
tests/ref/fate/vc1_sa00040 | 31 +-
tests/ref/fate/vc1_sa00050 | 61 +-
tests/ref/fate/vc1_sa10091 | 61 +-
tests/ref/fate/vc1_sa20021 | 121 +-
tests/ref/fate/vcr1 | 257 +-
tests/ref/fate/videoxl | 81 +-
tests/ref/fate/vmnc-16bit | 385 ++--
tests/ref/fate/vmnc-32bit | 99 +-
tests/ref/fate/vp3-coeff-level64 | 17 +-
tests/ref/fate/vp31 | 229 +-
tests/ref/fate/vp5 | 493 ++--
tests/ref/fate/vp6a | 187 +-
tests/ref/fate/vp6f | 349 +-
tests/ref/fate/vp8-sign-bias | 19 +-
tests/ref/fate/vp8-test-vector-001 | 59 +-
tests/ref/fate/vp8-test-vector-002 | 99 +-
tests/ref/fate/vp8-test-vector-003 | 99 +-
tests/ref/fate/vp8-test-vector-004 | 59 +-
tests/ref/fate/vp8-test-vector-005 | 99 +-
tests/ref/fate/vp8-test-vector-006 | 97 +-
tests/ref/fate/vp8-test-vector-007 | 59 +-
tests/ref/fate/vp8-test-vector-008 | 5 +-
tests/ref/fate/vp8-test-vector-009 | 99 +-
tests/ref/fate/vp8-test-vector-010 | 115 +-
tests/ref/fate/vp8-test-vector-011 | 59 +-
tests/ref/fate/vp8-test-vector-012 | 59 +-
tests/ref/fate/vp8-test-vector-013 | 59 +-
tests/ref/fate/vp8-test-vector-014 | 99 +-
tests/ref/fate/vp8-test-vector-015 | 521 ++--
tests/ref/fate/vp8-test-vector-016 | 59 +-
tests/ref/fate/vp8-test-vector-017 | 59 +-
tests/ref/fate/vqa-cc | 158 +-
tests/ref/fate/vqf-demux | 2 +-
tests/ref/fate/wc3movie-xan | 142 +-
tests/ref/fate/wmv8-drm | 261 +-
tests/ref/fate/wmv8-drm-nodec | 302 +-
tests/ref/fate/wnv1 | 173 +-
tests/ref/fate/wtv-demux | 280 +-
tests/ref/fate/xmv-demux | 364 ++--
tests/ref/fate/xxan-wc4 | 43 +-
tests/ref/fate/yop | 15 +-
tests/ref/fate/zlib | 3 +-
tests/ref/fate/zmbv-15bit | 319 +-
tests/ref/fate/zmbv-16bit | 319 +-
tests/ref/fate/zmbv-32bit | 319 +-
tests/ref/fate/zmbv-8bit | 551 ++--
398 files changed, 34087 insertions(+), 33602 deletions(-)
create mode 100644 libavformat/framehash.c
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 06718d2..0d6cb91 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -89,8 +89,8 @@ OBJS-$(CONFIG_FLIC_DEMUXER) += flic.o
OBJS-$(CONFIG_FLV_DEMUXER) += flvdec.o
OBJS-$(CONFIG_FLV_MUXER) += flvenc.o avc.o
OBJS-$(CONFIG_FOURXM_DEMUXER) += 4xm.o
-OBJS-$(CONFIG_FRAMECRC_MUXER) += framecrcenc.o
-OBJS-$(CONFIG_FRAMEMD5_MUXER) += md5enc.o
+OBJS-$(CONFIG_FRAMECRC_MUXER) += framecrcenc.o framehash.o
+OBJS-$(CONFIG_FRAMEMD5_MUXER) += md5enc.o framehash.o
OBJS-$(CONFIG_GIF_MUXER) += gif.o
OBJS-$(CONFIG_GSM_DEMUXER) += gsmdec.o
OBJS-$(CONFIG_GXF_DEMUXER) += gxf.o
diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c
index d845e79..6e2dcd2 100644
--- a/libavformat/framecrcenc.c
+++ b/libavformat/framecrcenc.c
@@ -21,13 +21,15 @@
#include "libavutil/adler32.h"
#include "avformat.h"
+#include "internal.h"
static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
uint32_t crc = av_adler32_update(0, pkt->data, pkt->size);
char buf[256];
- snprintf(buf, sizeof(buf), "%d, %"PRId64", %d, 0x%08x\n",
pkt->stream_index, pkt->dts, pkt->size, crc);
+ snprintf(buf, sizeof(buf), "%d, %"PRId64", %"PRId64", %d, %d, 0x%08x\n",
+ pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size,
crc);
avio_write(s->pb, buf, strlen(buf));
avio_flush(s->pb);
return 0;
@@ -39,6 +41,7 @@ AVOutputFormat ff_framecrc_muxer = {
.extensions = "",
.audio_codec = CODEC_ID_PCM_S16LE,
.video_codec = CODEC_ID_RAWVIDEO,
+ .write_header = ff_framehash_write_header,
.write_packet = framecrc_write_packet,
.flags = AVFMT_VARIABLE_FPS,
};
diff --git a/libavformat/framehash.c b/libavformat/framehash.c
new file mode 100644
index 0000000..2c82a28
--- /dev/null
+++ b/libavformat/framehash.c
@@ -0,0 +1,32 @@
+/*
+ * Common functions for the frame{crc,md5} muxers
+ *
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "internal.h"
+
+void ff_framehash_write_header(AVFormatContext *s)
+{
+ int i;
+ for (i = 0; i < s->nb_streams; i++) {
+ AVStream *st = s->streams[i];
+ avpriv_set_pts_info(st, 64, st->codec->time_base.num,
st->codec->time_base.den);
+ avio_printf(s->pb, "%d/%d\n", st->time_base.num, st->time_base.den);
+ avio_flush(s->pb);
+ }
+}
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 559e710..9375db0 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -307,4 +307,10 @@ int ff_add_param_change(AVPacket *pkt, int32_t channels,
uint64_t channel_layout, int32_t sample_rate,
int32_t width, int32_t height);
+/**
+ * Set the timebase for each stream from the corresponding codec timebase and
+ * print it.
+ */
+void ff_framehash_write_header(AVFormatContext *s);
+
#endif /* AVFORMAT_INTERNAL_H */
diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c
index 4509c18..c912494 100644
--- a/libavformat/md5enc.c
+++ b/libavformat/md5enc.c
@@ -21,6 +21,7 @@
#include "libavutil/md5.h"
#include "avformat.h"
+#include "internal.h"
#define PRIVSIZE 512
@@ -90,7 +91,8 @@ static int framemd5_write_packet(struct AVFormatContext *s,
AVPacket *pkt)
av_md5_init(s->priv_data);
av_md5_update(s->priv_data, pkt->data, pkt->size);
- snprintf(buf, sizeof(buf) - 64, "%d, %"PRId64", %d, ", pkt->stream_index,
pkt->dts, pkt->size);
+ snprintf(buf, sizeof(buf) - 64, "%d, %"PRId64", %"PRId64", %d, %d, ",
+ pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size);
md5_finish(s, buf);
return 0;
}
@@ -102,6 +104,7 @@ AVOutputFormat ff_framemd5_muxer = {
.priv_data_size = PRIVSIZE,
.audio_codec = CODEC_ID_PCM_S16LE,
.video_codec = CODEC_ID_RAWVIDEO,
+ .write_header = ff_framehash_write_header,
.write_packet = framemd5_write_packet,
.flags = AVFMT_VARIABLE_FPS,
};
diff --git a/tests/ref/fate/4xm-1 b/tests/ref/fate/4xm-1
index 5e66dcc..1dcc796 100644
--- a/tests/ref/fate/4xm-1
+++ b/tests/ref/fate/4xm-1
@@ -1,15 +1,16 @@
-0, 0, 921600, 0xd08f97c7
-0, 6000, 921600, 0xc433a85b
-0, 12000, 921600, 0x7ffeee42
-0, 18000, 921600, 0xc0ad9f52
-0, 24000, 921600, 0xb0235112
-0, 30000, 921600, 0xcbdd9805
-0, 36000, 921600, 0x5468bdb9
-0, 42000, 921600, 0x2f0c63fd
-0, 48000, 921600, 0xf1de04f0
-0, 54000, 921600, 0x95709ce2
-0, 60000, 921600, 0x69037c4a
-0, 66000, 921600, 0x513f8a98
-0, 72000, 921600, 0x55b82fa1
-0, 78000, 921600, 0x5c8ace28
-0, 84000, 921600, 0xb019770a
+1/15
+0, 0, 0, 1, 921600, 0xd08f97c7
+0, 1, 1, 1, 921600, 0xc433a85b
+0, 2, 2, 1, 921600, 0x7ffeee42
+0, 3, 3, 1, 921600, 0xc0ad9f52
+0, 4, 4, 1, 921600, 0xb0235112
+0, 5, 5, 1, 921600, 0xcbdd9805
+0, 6, 6, 1, 921600, 0x5468bdb9
+0, 7, 7, 1, 921600, 0x2f0c63fd
+0, 8, 8, 1, 921600, 0xf1de04f0
+0, 9, 9, 1, 921600, 0x95709ce2
+0, 10, 10, 1, 921600, 0x69037c4a
+0, 11, 11, 1, 921600, 0x513f8a98
+0, 12, 12, 1, 921600, 0x55b82fa1
+0, 13, 13, 1, 921600, 0x5c8ace28
+0, 14, 14, 1, 921600, 0xb019770a
--
1.7.7.3
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel