[vlc-commits] vpx: no need to check fmt_in
Tristan Matthews
git at videolan.org
Sun Jun 5 11:36:25 CEST 2016
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sun Jun 5 11:33:53 2016 +0200| [71dfe7a90445c3f5505738dcd886856a00dc0bed] | committer: Tristan Matthews
vpx: no need to check fmt_in
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71dfe7a90445c3f5505738dcd886856a00dc0bed
---
modules/codec/vpx.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index d31428e..d63385a 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -163,13 +163,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
v->i_visible_height = img->d_h;
}
- if( !dec->fmt_in.video.i_sar_num || !dec->fmt_in.video.i_sar_den )
+ if( !dec->fmt_out.video.i_sar_num || !dec->fmt_out.video.i_sar_den )
{
- if( !dec->fmt_out.video.i_sar_num || !dec->fmt_out.video.i_sar_den )
- {
- dec->fmt_out.video.i_sar_num = 1;
- dec->fmt_out.video.i_sar_den = 1;
- }
+ dec->fmt_out.video.i_sar_num = 1;
+ dec->fmt_out.video.i_sar_den = 1;
}
picture_t *pic = decoder_NewPicture(dec);
More information about the vlc-commits
mailing list