Skip to content

Commit c03e7b1

Browse files
authored
SG-40579: Add GIF support (AcademySoftwareFoundation#928)
### Linked issues ### Summarize your change. Added GIF to the list of supported video formats. ### Describe the reason for the change. FFmpeg can decode animated gifs, so adding gifs to MovieFFMpegIO::getFormats() was all it took to get OpenRV to play animated gifs like they were movies. ### Describe what you have tested and on which operating system. Successfully tested on Rocky Linux 9.5 ### Add a list of changes, and note any that might need special attention during the review. ### If possible, provide screenshots. Signed-off-by: TJ Jackson <tj.jackson@dreamworks.com>
1 parent 9870891 commit c03e7b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/image/MovieFFMpeg/MovieFFMpeg.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6542,6 +6542,7 @@ namespace TwkMovie
65426542
// Video
65436543
formats["avi"] = make_pair("Audio Video Interleave", vidcap);
65446544
formats["flv"] = make_pair("Flash Video", vidcap);
6545+
formats["gif"] = make_pair("Graphics Interchange Format", vidcap);
65456546
formats["m3u8"] = make_pair("M3U8 Stream Metadata", vidcap);
65466547
formats["m4v"] = make_pair("iTunes Video Format (from MPEG-4)", vidcap);
65476548
formats["mkv"] = make_pair("Matroska Video", vidcap);

0 commit comments

Comments
 (0)