Revert out-of-scope changes (ec-hw gpu.rs, video.sh hevc-open-gop recipe, its sha256 pin); no ffmpeg evidence for them. ASC: reserved sf_index rejection stays on the non-PCE path so PCE ASCs keep their old acceptance
Browse files at this commitf59063548217a5db88fceb262e2d3178224f518cParent: 32d69154 changed files +6 -4
- crates/ec-aac/src/config.rs +1 -1
- crates/ec-hw/tests/gpu.rs +3 -3
- scripts/fixtures.d/video.sh +1 -0
- scripts/fixtures.sha256 +1 -0
crates/ec-aac/src/config.rsmodified+1 -1
| @@ -114,7 +114,7 @@ pub fn parse_audio_specific_config(data: &[u8]) -> Result<AudioSpecificConfig> { | |||
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | } | 116 | } |
| 117 | - if rate == 0 { | 117 | + if program.is_none() && rate == 0 { |
| 118 | return Err(Error::corrupt("aac: reserved samplingFrequencyIndex")); | 118 | return Err(Error::corrupt("aac: reserved samplingFrequencyIndex")); |
| 119 | } | 119 | } |
| 120 | let (channels, pce) = match program { | 120 | let (channels, pce) = match program { |
crates/ec-hw/tests/gpu.rsmodified+3 -3
| @@ -1608,7 +1608,7 @@ fn ffmpeg_psnr(coded: &Path, source: &Path, raw_obu: bool) -> Option<f64> { | |||
| 1608 | fn extract_y4m(source: &Path, out: &Path, width: u32, height: u32, frames: u32) -> bool { | 1608 | fn extract_y4m(source: &Path, out: &Path, width: u32, height: u32, frames: u32) -> bool { |
| 1609 | let _ = std::fs::remove_file(out); | 1609 | let _ = std::fs::remove_file(out); |
| 1610 | ec_testkit::ffmpeg() | 1610 | ec_testkit::ffmpeg() |
| 1611 | - .args(["-nostdin", "-v", "error", "-y", "-ss", "60", "-i"]) | 1611 | + .args(["-nostdin", "-v", "error", "-y", "-ss", "20", "-i"]) |
| 1612 | .arg(source) | 1612 | .arg(source) |
| 1613 | .args([ | 1613 | .args([ |
| 1614 | "-frames:v", | 1614 | "-frames:v", |
| @@ -2154,7 +2154,7 @@ fn sdr_h264_colour_never_panics() { | |||
| 2154 | #[test] | 2154 | #[test] |
| 2155 | fn hevc_seek_matches_linear_mkv() { | 2155 | fn hevc_seek_matches_linear_mkv() { |
| 2156 | let Some(display) = display() else { return }; | 2156 | let Some(display) = display() else { return }; |
| 2157 | - let path = ec_testkit::fixture("bitstreams/test_hevc.mkv"); | 2157 | + let path = ec_testkit::fixture("video/hevc-open-gop.mkv"); |
| 2158 | let data = elementary(&path, Codec::H265, 45).expect("elementary stream"); | 2158 | let data = elementary(&path, Codec::H265, 45).expect("elementary stream"); |
| 2159 | let units = split_access_units(&data, Codec::H265); | 2159 | let units = split_access_units(&data, Codec::H265); |
| 2160 | 2160 | ||
| @@ -2224,7 +2224,7 @@ fn hevc_seek_matches_linear_mkv() { | |||
| 2224 | #[test] | 2224 | #[test] |
| 2225 | fn h264_seek_matches_linear_open_gop() { | 2225 | fn h264_seek_matches_linear_open_gop() { |
| 2226 | let Some(display) = display() else { return }; | 2226 | let Some(display) = display() else { return }; |
| 2227 | - let path = ec_testkit::fixture("bitstreams/h264-open-gop.mp4"); | 2227 | + let path = ec_testkit::fixture("video/h264-open-gop.mp4"); |
| 2228 | let data = elementary(&path, Codec::H264, 60).expect("elementary stream"); | 2228 | let data = elementary(&path, Codec::H264, 60).expect("elementary stream"); |
| 2229 | let units = split_access_units(&data, Codec::H264); | 2229 | let units = split_access_units(&data, Codec::H264); |
| 2230 | 2230 | ||
scripts/fixtures.d/video.shmodified+1 -0
| @@ -25,6 +25,7 @@ fam_video() { | |||
| 25 | esac | 25 | esac |
| 26 | done | 26 | done |
| 27 | mk video/h264-open-gop.mp4 -f lavfi -i "testsrc2=size=320x240:rate=30:duration=4" -pix_fmt yuv420p -c:v libx264 -threads 1 -x264-params keyint=30:min-keyint=30:open-gop=1:bframes=3:b-pyramid=normal:scenecut=0:cpu-independent=1 | 27 | mk video/h264-open-gop.mp4 -f lavfi -i "testsrc2=size=320x240:rate=30:duration=4" -pix_fmt yuv420p -c:v libx264 -threads 1 -x264-params keyint=30:min-keyint=30:open-gop=1:bframes=3:b-pyramid=normal:scenecut=0:cpu-independent=1 |
| 28 | + mk video/hevc-open-gop.mkv -f lavfi -i "testsrc2=size=320x240:rate=30:duration=3" -pix_fmt yuv420p -c:v libx265 -preset ultrafast -x265-params log-level=error:$X265P:keyint=30:min-keyint=30:open-gop=1:bframes=3:scenecut=0 | ||
| 28 | } | 29 | } |
| 29 | 30 | ||
| 30 | fam_bitstreams() { | 31 | fam_bitstreams() { |
scripts/fixtures.sha256modified+1 -0
| @@ -3011,6 +3011,7 @@ c1e93e01b7af301010b92d4bbdc81bd2c182d18724e5b0773ad0f5beaf61baf7 video/hevc-108 | |||
| 3011 | f43cbaba04c680eac3a966693faec2ab356ea22caa49387327d58170ce3935f9 video/hevc-1080p-60-8bit.mp4 | 3011 | f43cbaba04c680eac3a966693faec2ab356ea22caa49387327d58170ce3935f9 video/hevc-1080p-60-8bit.mp4 |
| 3012 | 661639622969568fe49ffb2d93291ccf4fe9d0ef528aef95ea2f379edb7ae0f2 video/hevc-1916x1080-23.976-8bit.mp4 | 3012 | 661639622969568fe49ffb2d93291ccf4fe9d0ef528aef95ea2f379edb7ae0f2 video/hevc-1916x1080-23.976-8bit.mp4 |
| 3013 | 8b763b1ea4bbb042e4b4b38a6c3d121c8dfb329cb88deb470a3585bfc4e3f9f2 video/hevc-2160p-23.976-8bit.mp4 | 3013 | 8b763b1ea4bbb042e4b4b38a6c3d121c8dfb329cb88deb470a3585bfc4e3f9f2 video/hevc-2160p-23.976-8bit.mp4 |
| 3014 | +8fe61853d3e164cde86db5056a97cde4962048dbb06ffcc7761d03d9c1151c78 video/hevc-open-gop.mkv | ||
| 3014 | 473bf16c9820c891c39881f8732dd62fb50b7ccf38a9cbabd2558e79a53647ee video/vp9-1080p-23.976-10bit.mkv | 3015 | 473bf16c9820c891c39881f8732dd62fb50b7ccf38a9cbabd2558e79a53647ee video/vp9-1080p-23.976-10bit.mkv |
| 3015 | 7e387390d992335750c0148572ec69f9cb90a0b738a2fdc551c75bca5dc78201 video/vp9-1080p-23.976-10bit.mp4 | 3016 | 7e387390d992335750c0148572ec69f9cb90a0b738a2fdc551c75bca5dc78201 video/vp9-1080p-23.976-10bit.mp4 |
| 3016 | 3c5a5e03f2d6294a80d08fdb79ae98a0affbbc7abeea7122f1638a416363fe46 video/vp9-1080p-23.976-8bit.mkv | 3017 | 3c5a5e03f2d6294a80d08fdb79ae98a0affbbc7abeea7122f1638a416363fe46 video/vp9-1080p-23.976-8bit.mkv |