diff options
author | xylosper <darklin20@gmail.com> | 2013-09-12 21:50:09 +0900 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-13 22:00:59 +0200 |
commit | a8b625d3b1ec7edad4a375db2f872a9ab628e0f4 (patch) | |
tree | 955ec7e08690d2c02e8c80d531dad498b4d8327b /video | |
parent | 1e64edb7d83bebc2b2ece18b94727d0c889c4b0d (diff) | |
download | mpv-a8b625d3b1ec7edad4a375db2f872a9ab628e0f4.tar.bz2 mpv-a8b625d3b1ec7edad4a375db2f872a9ab628e0f4.tar.xz |
vd_lavc: reset last_sample_aspect_ratio in uninit_avctx()
In init_vo(), if sh->aspect is 0 or last_sample_aspect_ratio is set,
sh->aspect is overwritten. With software decoding fallback behaviour,
this makes the aspect ratio from container ignored since
last_sample_aspect_ratio is already set in first try with hardware
decoding.
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 0367c2afed..2f47659bde 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -410,6 +410,7 @@ static void uninit_avctx(sh_video_t *sh) #if !HAVE_AVUTIL_REFCOUNTING mp_buffer_pool_free(&ctx->dr1_buffer_pool); #endif + ctx->last_sample_aspect_ratio = (AVRational){0, 0}; } static void uninit(sh_video_t *sh) |