title: How can I found FFmpeg Error code's meaning?
body: <p>I have an issue using FFMPEG.</p>
  
  <p><code>avcodec_send_packet()</code> is returning error code -12.</p>
  
  <p>I am trying to find what the meaning of -12 is.</p>
  
  <p>I found this page but I can't understand the calculation for -12:</p>
  
  <p><a href="https://stackoverflow.com/questions/22944133/">How can I find out what this ffmpeg error code means?</a></p>
  
  <p>Can anyone help me?</p>
  
  <p>I'm using DXVA2 for decoding. and <code>avcodec_send_packet()</code> function is return -12 after the 20th frame.</p>
  
  <p>20th frame return</p>
  
  <p><a href="https://i.stack.imgur.com/d49Kq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d49Kq.png" alt="image"></a></p>
  
  <p>21st frame return</p>
  
  <p><a href="https://i.stack.imgur.com/b1tBh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b1tBh.png" alt="image"></a></p>