From 2c31053da413ba633448b1aa04549c07495fa585 Mon Sep 17 00:00:00 2001
From: sumit <sumita@nvidia.com>
Date: Fri, 16 Dec 2016 01:10:47 +0530
Subject: [PATCH] ffmpeg: reset resample format in the input stream after
 decoder initialization

---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index e4890a4..e2bbd1a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2765,6 +2765,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
                      ist->file_index, ist->st->index, av_err2str(ret));
             return ret;
         }
+        ist->resample_pix_fmt = ist->dec_ctx->pix_fmt;
         assert_avoptions(ist->decoder_opts);
     }
 
-- 
1.9.1

