Skip to content

Commit

Permalink
fix for #182
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Sep 9, 2017
1 parent d0d9473 commit be7185f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/C++/Core/Ap4AtomFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,17 @@ AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream& stream,
case AP4_ATOM_TYPE_HVCE:
if (atom_is_large) return AP4_ERROR_INVALID_FORMAT;
atom = AP4_HvccAtom::Create(size_32, stream);
atom->SetType(AP4_ATOM_TYPE_HVCE);
if (atom) {
atom->SetType(AP4_ATOM_TYPE_HVCE);
}
break;

case AP4_ATOM_TYPE_AVCE:
if (atom_is_large) return AP4_ERROR_INVALID_FORMAT;
atom = AP4_AvccAtom::Create(size_32, stream);
atom->SetType(AP4_ATOM_TYPE_AVCE);
if (atom) {
atom->SetType(AP4_ATOM_TYPE_AVCE);
}
break;

#if !defined(AP4_CONFIG_MINI_BUILD)
Expand Down

0 comments on commit be7185f

Please sign in to comment.