Fixed bug in ExtractFrameFromY4mFile API which was not extracting the frames correctly.
Issue: This API was calculating the file_header and frame_header offset only for the first frame which is not the right logic. We need to skip the file and frame header every time we extract a new frame.
Also added a unit test case which compares the extracted frame with the frame stored in text file.
NOPRESUBMIT=true
NOTRY=true
BUG=webrtc:6761
Review-Url: https://codereview.webrtc.org/2532963002
Cr-Commit-Position: refs/heads/master@{#15288}
diff --git a/resources/reference_less_video_test_file.y4m.sha1 b/resources/reference_less_video_test_file.y4m.sha1
new file mode 100644
index 0000000..f9e3048
--- /dev/null
+++ b/resources/reference_less_video_test_file.y4m.sha1
@@ -0,0 +1 @@
+5a1620516daf59870158a66230d7bafd9fe9afa1
\ No newline at end of file