Commit e09289ed authored by Thomas Guillem's avatar Thomas Guillem

avformat: add missing vlc_input_attachment_New() error handling

parent 99e85d08
...@@ -462,8 +462,9 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -462,8 +462,9 @@ int OpenDemux( vlc_object_t *p_this )
p_attachment = vlc_input_attachment_New( p_attachment = vlc_input_attachment_New(
filename->value, "application/x-truetype-font", filename->value, "application/x-truetype-font",
NULL, cc->extradata, (int)cc->extradata_size ); NULL, cc->extradata, (int)cc->extradata_size );
TAB_APPEND( p_sys->i_attachments, p_sys->attachments, if( p_attachment )
p_attachment ); TAB_APPEND( p_sys->i_attachments, p_sys->attachments,
p_attachment );
} }
} }
else msg_Warn( p_demux, "unsupported attachment type (%u) in avformat demux", cc->codec_id ); else msg_Warn( p_demux, "unsupported attachment type (%u) in avformat demux", cc->codec_id );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment