Commit ff6d03f0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avparser: Fix typo and remove trailing spaces

(cherry picked from commit a56bd7ec491831228cb469af0e30c5f6d4735413)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent faf90e03
...@@ -86,14 +86,14 @@ int OpenPacketizer( vlc_object_t *p_this ) ...@@ -86,14 +86,14 @@ int OpenPacketizer( vlc_object_t *p_this )
AVCodecParserContext * p_ctx = av_parser_init( i_avcodec_id ); AVCodecParserContext * p_ctx = av_parser_init( i_avcodec_id );
if( !p_ctx ) if( !p_ctx )
return VLC_EGENERIC; return VLC_EGENERIC;
AVCodec * p_codec = avcodec_find_decoder( i_avcodec_id ); AVCodec * p_codec = avcodec_find_decoder( i_avcodec_id );
if( unlikely( !p_codec ) ) if( unlikely( !p_codec ) )
{ {
av_parser_close( p_ctx ); av_parser_close( p_ctx );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
AVCodecContext * p_codec_ctx = avcodec_alloc_context3( p_codec ); AVCodecContext * p_codec_ctx = avcodec_alloc_context3( p_codec );
if( unlikely( !p_codec_ctx ) ) if( unlikely( !p_codec_ctx ) )
{ {
...@@ -174,11 +174,11 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block ) ...@@ -174,11 +174,11 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
p_block->i_pts = p_block->i_dts = VLC_TS_INVALID; p_block->i_pts = p_block->i_dts = VLC_TS_INVALID;
return p_ret; return p_ret;
out: out:
p_sys->i_offset = 0; p_sys->i_offset = 0;
block_Release( *pp_block ); block_Release( *pp_block );
*pp_block == NULL; *pp_block = NULL;
return NULL; return NULL;
} }
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