Skip to content

Commit

Permalink
Fixed a bug in ICS being stored in the image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Mar 10, 2024
1 parent 7482814 commit 491b2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions mrv2/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ v1.0.9
to Media Info Panel's video.
- Fixed FFmpeg reader to take color coefficients. Now the gray ramp of
Sam Richards is the same.
- Fixed a bug in session loading when there was no Input Color Space specified
in the image, which got introduced in v1.0.8.


v1.0.8
Expand Down
6 changes: 2 additions & 4 deletions mrv2/lib/mrvFl/mrvSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ namespace mrv
continue;

Aitem->ocioIcs = item.ocioIcs;
mrv::image::setOcioIcs(Aitem->ocioIcs);
if (!Aitem->ocioIcs.empty())
mrv::image::setOcioIcs(Aitem->ocioIcs);
Aitem->annotations = item.annotations;
Aitem->videoLayer = item.videoLayer;
Aitem->currentTime = item.currentTime;
Expand Down Expand Up @@ -508,9 +509,6 @@ namespace mrv
auto Aitem = model->observeA()->get();
if (Aitem && !Aitem->ocioIcs.empty())
{
std::cerr << Aindex
<< " set ocioIcs to " << Aitem->ocioIcs
<< std::endl;
mrv::image::setOcioIcs(Aitem->ocioIcs);
}
else
Expand Down

0 comments on commit 491b2a8

Please sign in to comment.