comparison mpeg12.c @ 2681:663dca3aa1d9 libavcodec

preserve parse context
author michael
date Sat, 14 May 2005 15:34:49 +0000
parents 8e9afac9896b
children b71d3566fc6d
comparison
equal deleted inserted replaced
2680:1a6192e0b1f9 2681:663dca3aa1d9
2081 s1->save_aspect_info != s->aspect_ratio_info|| 2081 s1->save_aspect_info != s->aspect_ratio_info||
2082 0) 2082 0)
2083 { 2083 {
2084 2084
2085 if (s1->mpeg_enc_ctx_allocated) { 2085 if (s1->mpeg_enc_ctx_allocated) {
2086 ParseContext pc= s->parse_context;
2087 s->parse_context.buffer=0;
2086 MPV_common_end(s); 2088 MPV_common_end(s);
2089 s->parse_context= pc;
2087 } 2090 }
2088 2091
2089 if( (s->width == 0 )||(s->height == 0)) 2092 if( (s->width == 0 )||(s->height == 0))
2090 return -2; 2093 return -2;
2091 2094